Package com.luciad.lucy.util
Class TLcyProperties
java.lang.Object
com.luciad.lucy.util.properties.ALcyProperties
com.luciad.lucy.util.TLcyProperties
- All Implemented Interfaces:
ILcdPropertyChangeSource
Implementation of
ALcyProperties
that stores TLcyStringProperties's supported value types as strings.
Other value types are stored as objects.
This allows to easily load and store the String-convertible values, while still supporting
other value types.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears this key-value pair list so that it contains no keys.boolean
containsKey
(String aKey) Returns true if the key-value pair with the specified key exists.static void
copyToSFCT
(ALcyProperties aSource, ALcyProperties aDestinationSFCT) protected Object
Implementation version of the get method, which retrieves the value from the underlying store.Returns the class of the value behind the specified key.keys()
Returns the keys of thisTLcyProperties
.protected void
Implementation version of the put method, which puts the value in the underlying store.void
Removes the key (and its corresponding value) from this key-value pair list.int
size()
Returns the number of key-value pairs.Methods inherited from class com.luciad.lucy.util.properties.ALcyProperties
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, get, get, getBoolean, getBooleanArray, getColor, getColorArray, getDouble, getDoubleArray, getFloat, getFloatArray, getInt, getIntArray, getLong, getLongArray, getPropertyChangeListeners, getPropertyChangeListeners, getString, getStringArray, isEmpty, put, put, putAll, putAll, putBoolean, putBooleanArray, putColor, putColorArray, putDouble, putDoubleArray, putFloat, putFloatArray, putInt, putIntArray, putLong, putLongArray, putString, putStringArray, removePropertyChangeListener, removePropertyChangeListener, subset, synchronizeSFCT, unmodifiable
-
Constructor Details
-
TLcyProperties
public TLcyProperties()Default Constructor
-
-
Method Details
-
getImpl
Description copied from class:ALcyProperties
Implementation version of the get method, which retrieves the value from the underlying store.- Specified by:
getImpl
in classALcyProperties
- Parameters:
aKey
- The key, guaranteed to be notnull
.- Returns:
- The value associated with the key, or
null
if no value is associated.
-
putImpl
Description copied from class:ALcyProperties
Implementation version of the put method, which puts the value in the underlying store.- Specified by:
putImpl
in classALcyProperties
- Parameters:
aKey
- The key, guaranteed to be notnull
.aNewValue
- The value to associate to the key, guaranteed to be notnull
.
-
getType
Returns the class of the value behind the specified key.- Parameters:
aKey
- the key to query- Returns:
- the class of the value behind the specified key.
-
remove
Description copied from class:ALcyProperties
Removes the key (and its corresponding value) from this key-value pair list. This method does nothing if the key is unknown.- Specified by:
remove
in classALcyProperties
- Parameters:
aKey
- the key to be removed
-
size
public int size()Description copied from class:ALcyProperties
Returns the number of key-value pairs.- Specified by:
size
in classALcyProperties
- Returns:
- the number of key-value pairs.
-
containsKey
Description copied from class:ALcyProperties
Returns true if the key-value pair with the specified key exists.- Specified by:
containsKey
in classALcyProperties
- Parameters:
aKey
- key to look for- Returns:
- true if the key-value pair with the specified key exists.
-
keys
Description copied from class:ALcyProperties
Returns the keys of thisTLcyProperties
.- Specified by:
keys
in classALcyProperties
- Returns:
- the keys of this
TLcyProperties
.
-
clear
public void clear()Description copied from class:ALcyProperties
Clears this key-value pair list so that it contains no keys. Calling this method could result in anull-null-null
property change event indicating all properties have changed, or in a separate event for all removed properties (implementation specific).- Specified by:
clear
in classALcyProperties
-
copyToSFCT
Functionally equivalent toALcyProperties.synchronizeSFCT(com.luciad.lucy.util.properties.ALcyProperties, com.luciad.lucy.util.properties.ALcyProperties)
.- Parameters:
aSource
- The properties to synchronize from.aDestinationSFCT
- The properties to make identical to the source properties.
-