S - the setting typepublic final class SettingMap<S extends Setting<V>,V extends Setting.State> extends Object
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encode()
Encodes the state of each of the settings in this map to a byte array.
|
String |
encodeToString()
Encodes the state of each of the settings in this map to a string.
|
boolean |
equals(Object o) |
Map<S,V> |
exportToMap()
Exports this
SettingMap as a Map. |
V |
get(S setting)
Gets the state of a given setting.
|
int |
hashCode() |
boolean |
isDifferentFromDefault()
Returns if this map has any settings with states differing from the defaults.
|
V |
set(S setting,
V state)
Sets the state of a given setting.
|
String |
toString()
Returns a readable string representation of the map.
|
public V get(S setting)
setting - the settingpublic V set(S setting, V state)
setting - the settingstate - the state to setpublic Map<S,V> exportToMap()
SettingMap as a Map.public boolean isDifferentFromDefault()
public byte[] encode()
public String encodeToString()
public String toString()
Copyright © 2022. All rights reserved.