public class PropertyList<T extends Property>
extends java.util.ArrayList<T>
implements java.io.Serializable
Constructor and Description |
---|
PropertyList()
Default constructor.
|
PropertyList(int initialCapacity)
Creates a new instance with the specified initial capacity.
|
PropertyList(PropertyList<? extends T> properties)
Creates a deep copy of the specified property list.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T property)
Add a property to the list.
|
<C extends T> |
getProperties(java.lang.String name)
Returns a list of properties with the specified name.
|
<R> R |
getProperty(java.lang.String aName)
Returns the first property of specified name.
|
boolean |
remove(Property property)
Remove a property from the list.
|
java.lang.String |
toString() |
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
public PropertyList()
public PropertyList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic PropertyList(PropertyList<? extends T> properties) throws java.text.ParseException, java.io.IOException, java.net.URISyntaxException
properties
- a property listjava.text.ParseException
- where property data cannot be parsedjava.io.IOException
- where property data cannot be readjava.net.URISyntaxException
- where a property contains an invalid URIpublic final java.lang.String toString()
public final <R> R getProperty(java.lang.String aName)
aName
- name of property to returnpublic final <C extends T> PropertyList<C> getProperties(java.lang.String name)
name
- name of properties to returnpublic final boolean add(T property)
public final boolean remove(Property property)
property
- the property to removeList.remove(java.lang.Object)