public class RasterControlPointList extends ArrayList<RasterControlPointList.ControlPoint> implements AVList
Modifier and Type | Class and Description |
---|---|
static class |
RasterControlPointList.ControlPoint |
modCount
Constructor and Description |
---|
RasterControlPointList() |
RasterControlPointList(Collection<? extends RasterControlPointList.ControlPoint> c) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds the specified all-property property change listener that will be called for all list changes.
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Adds a property change listener for the specified key.
|
AVList |
clearList() |
AVList |
copy()
Returns a shallow copy of this
AVList instance: the keys and values themselves are not cloned. |
void |
firePropertyChange(PropertyChangeEvent propertyChangeEvent)
Calls all registered property change listeners with the specified property change event.
|
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Calls all property change listeners associated with the specified key.
|
Set<Map.Entry<String,Object>> |
getEntries() |
String |
getStringValue(String key)
Returns the value for a specified key.
|
Object |
getValue(String key)
Returns the value for a specified key.
|
Collection<Object> |
getValues() |
boolean |
hasKey(String key)
Indicates whether a key is in the collection.
|
Object |
removeKey(String key)
Removes a specified key from the collection if the key exists, otherwise returns without affecting the
collection.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the specified all-property property change listener.
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Removes a property change listener associated with the specified key.
|
Object |
setValue(String key,
Object value)
Adds a key/value pair to the list.
|
AVList |
setValues(AVList avList)
Adds the contents of another attribute-value list to the list.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public RasterControlPointList()
public RasterControlPointList(Collection<? extends RasterControlPointList.ControlPoint> c)
public void addPropertyChangeListener(PropertyChangeListener listener)
AVList
addPropertyChangeListener
in interface AVList
listener
- the listener to call.PropertyChangeSupport
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
AVList
addPropertyChangeListener
in interface AVList
propertyName
- the key to associate the listener with.listener
- the listener to associate with the key.PropertyChangeSupport
public AVList copy()
AVList
AVList
instance: the keys and values themselves are not cloned.public void firePropertyChange(PropertyChangeEvent propertyChangeEvent)
AVList
firePropertyChange
in interface AVList
propertyChangeEvent
- the eventPropertyChangeSupport
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
AVList
odValue
and newValue
are equal and non-null.firePropertyChange
in interface AVList
propertyName
- the keyoldValue
- the value associated with the key before the even causing the firing.newValue
- the new value associated with the key.PropertyChangeSupport
public Set<Map.Entry<String,Object>> getEntries()
getEntries
in interface AVList
public String getStringValue(String key)
AVList
String
.getStringValue
in interface AVList
key
- the attribute name. May not be null
.null
.public Object getValue(String key)
AVList
public Collection<Object> getValues()
public boolean hasKey(String key)
AVList
public Object removeKey(String key)
AVList
public void removePropertyChangeListener(PropertyChangeListener listener)
AVList
removePropertyChangeListener
in interface AVList
listener
- the listener to remove.PropertyChangeSupport
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
AVList
removePropertyChangeListener
in interface AVList
propertyName
- the key associated with the change listener.listener
- the listener to remove.PropertyChangeSupport
public Object setValue(String key, Object value)
AVList
setValue
in interface AVList
key
- the attribute name. May not be null
.value
- the attribute value. May be null
, in which case any existing value for the key is
removed from the collection.