mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-27 20:57:35 +01:00
Minor - improve previous commit
This commit is contained in:
parent
b3a3843b60
commit
83c02f487f
@ -27,8 +27,7 @@ public class TagReplacer {
|
|||||||
* Replace a template with default tags and custom ones supplied by a map.
|
* Replace a template with default tags and custom ones supplied by a map.
|
||||||
*
|
*
|
||||||
* @param template The template to process
|
* @param template The template to process
|
||||||
* @param tagValues Map with additional tags, e.g. a map entry with key "foo" and value "bar" will replace
|
* @param tagValues Container with tags and their associated values
|
||||||
* any occurrences of "{foo}" to "bar".
|
|
||||||
* @return The filled template
|
* @return The filled template
|
||||||
*/
|
*/
|
||||||
public static String applyReplacements(String template, TagValueHolder tagValues) {
|
public static String applyReplacements(String template, TagValueHolder tagValues) {
|
||||||
|
@ -27,11 +27,6 @@ public abstract class TagValue<T> {
|
|||||||
public boolean isEmpty() {
|
public boolean isEmpty() {
|
||||||
return getValue().isEmpty();
|
return getValue().isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return super.hashCode();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class NestedTagValue extends TagValue<List<TagValueHolder>> {
|
public static final class NestedTagValue extends TagValue<List<TagValueHolder>> {
|
||||||
|
Loading…
Reference in New Issue
Block a user