S - the setting typepublic final class BooleanSettingMap<S extends BooleanSetting> 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) |
boolean |
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.
|
boolean |
set(S setting,
boolean state)
Sets the state of a given setting.
|
boolean |
toggle(S setting)
Toggles the state of a setting.
|
String |
toString()
Returns a readable string representation of the map.
|
public boolean get(S setting)
setting - the settingpublic boolean set(S setting, boolean state)
setting - the settingstate - the state to setpublic boolean toggle(S setting)
setting - the settingpublic boolean isDifferentFromDefault()
public byte[] encode()
public String encodeToString()
public String toString()
Consists of a list of the ordinals of the setting set to a true state.
Copyright © 2022. All rights reserved.