public class PropertyList extends ArrayList<Property> implements Serializable
modCount
Constructor and Description |
---|
PropertyList()
Default constructor.
|
PropertyList(int initialCapacity)
Creates a new instance with the specified initial capacity.
|
PropertyList(PropertyList properties)
Creates a deep copy of the specified property list.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Property property)
Add a property to the list.
|
List<Property> |
getProperties(String name)
Returns a list of properties with the specified name.
|
<T extends Property> |
getProperty(String aName)
Returns the first property of specified name.
|
boolean |
remove(Property property)
Remove a property from the list.
|
void |
replaceAll(Property property) |
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
equals, hashCode
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public PropertyList()
public PropertyList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic PropertyList(PropertyList properties) throws URISyntaxException
properties
- a property listURISyntaxException
public final String toString()
toString
in class AbstractCollection<Property>
public final <T extends Property> Optional<T> getProperty(String aName)
aName
- name of property to returnpublic final List<Property> getProperties(String name)
name
- name of properties to returnpublic final boolean add(Property property)
add
in interface Collection<Property>
add
in interface List<Property>
add
in class ArrayList<Property>
property
- the property to addList.add(java.lang.Object)
public final boolean remove(Property property)
property
- the property to removeList.remove(java.lang.Object)
public void replaceAll(Property property)