public class Defaults
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Defaults(java.lang.String ID)
Construct a new empty Defaults
|
Defaults(java.lang.String ID,
java.util.Map<Settings.SettingKey,java.lang.Object> defaults)
Construct a new Defaults
|
Modifier and Type | Method and Description |
---|---|
void |
add(Defaults toAdd)
Add the supplied defaults to this one.
|
java.util.Map<Settings.SettingKey,java.lang.Object> |
getDefaults()
Get the map of default settings
|
java.lang.String |
getID()
Get the ID of this set of defaults
|
void |
setID(java.lang.String ID)
Set the ID for this set of defaults
|
public Defaults(java.lang.String ID)
ID
- the ID for this set of defaultspublic Defaults(java.lang.String ID, java.util.Map<Settings.SettingKey,java.lang.Object> defaults)
ID
- the ID for this set of defaultsdefaults
- the default settings to usepublic java.lang.String getID()
public void setID(java.lang.String ID)
ID
- the ID to usepublic java.util.Map<Settings.SettingKey,java.lang.Object> getDefaults()
public void add(Defaults toAdd)
toAdd
- the defaults to add