mirror of
https://bitbucket.org/projectswg/pswgcommon.git
synced 2026-07-13 21:00:59 -04:00
Added utility methods to CustomizationString
This commit is contained in:
@@ -41,6 +41,7 @@ import java.nio.ByteBuffer;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.function.BiConsumer;
|
||||
|
||||
/**
|
||||
* The Customization string is used to set special properties
|
||||
@@ -92,6 +93,14 @@ public class CustomizationString implements Encodable, Persistable {
|
||||
return variables.remove(name);
|
||||
}
|
||||
|
||||
public CustomizationVariable get(String name) {
|
||||
return variables.get(name);
|
||||
}
|
||||
|
||||
public void forEach(BiConsumer<? super String, ? super CustomizationVariable> consumer) {
|
||||
variables.forEach(consumer);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
variables.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user