Class Setting.KEY
com.poly.polyos.settings
Class Setting.KEY
- java.lang.Object
- com.poly.polyos.settings.Setting.KEY
Enclosing class:
Setting
public static class
Setting.KEY
extends java.lang.Object
Represents the key of this configuration.
Field Summary
Modifier and Type | Field and Description |
---|---|
java.lang.String | key |
Key of this setting | |
Setting.TYPE | type |
Setting.TYPE of the setting |
Constructor Summary
Constructor and Description
KEY(java.lang.String key)
Initializes with the key of type Setting.TYPE.SINGLE
KEY(java.lang.String key, Setting.TYPE type)
Initializes with the key of type Setting.TYPE.SINGLE
Method Summary
Modifier and Type | Method and Description | |
---|---|---|
boolean | equals(java.lang.Object obj) | |
int | hashCode() | |
java.lang.String | toString() |
Methods inherited from class java.lang.Object
clone
, finalize
, getClass
, notify
, notifyAll
, wait
, wait
, wait
Field Detail
type
public Setting.TYPE type
Setting.TYPE
of the setting. Default is Setting.TYPE.SINGLE
.
Since:
3.0.12
key
public java.lang.String key
Key of this setting.
For some predefined setting keys, see IPolySettings
.
Constructor Detail
KEY
public KEY(java.lang.String key)
Initializes with the key of type Setting.TYPE.SINGLE
KEY
public KEY(java.lang.String key,
Setting.TYPE type)
Initializes with the key of type Setting.TYPE.SINGLE
Method Detail
hashCode
public int hashCode()
Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
Overrides:
toString
in class java.lang.Object