public class LongProperty extends AbstractToStringProperty<java.lang.Long>
Long
value.AbstractToStringProperty.ChildProperty<T>
AbstractProperty.InvalidPreferenceValueException, AbstractProperty.ValueChangeEvent<T>, AbstractProperty.ValueChangeListener<T>
defaultValue, key, preferences
Constructor and Description |
---|
LongProperty(java.lang.String key,
long defaultValue)
Constructs a new
LongProperty |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Long |
fromString(java.lang.String string)
Converts the string to an object of the given type.
|
java.lang.Long |
get()
Replies the value of this property.
|
boolean |
put(java.lang.Long value)
Sets this property to the specified value.
|
protected java.lang.String |
toString(java.lang.Long t)
Converts the string to an object of the given type.
|
getAsString, getChildProperty, getSpecialized
addListener, addListenerImpl, addWeakListener, cached, equals, getDefaultValue, getKey, getPreferences, hashCode, isSet, remove, removeListener, removeListenerImpl, storeDefaultValue
public LongProperty(java.lang.String key, long defaultValue)
LongProperty
key
- property keydefaultValue
- default valuepublic java.lang.Long get()
AbstractProperty
get
in class AbstractToStringProperty<java.lang.Long>
public boolean put(java.lang.Long value)
AbstractProperty
put
in class AbstractToStringProperty<java.lang.Long>
value
- The new value of this propertyprotected java.lang.Long fromString(java.lang.String string)
AbstractToStringProperty
fromString
in class AbstractToStringProperty<java.lang.Long>
string
- The stringprotected java.lang.String toString(java.lang.Long t)
AbstractToStringProperty
toString
in class AbstractToStringProperty<java.lang.Long>
t
- The object.