public class ParameterValueList extends Object implements Collection<ParameterValue>
| Constructor and Description |
|---|
ParameterValueList() |
ParameterValueList(Collection<ParameterValue> pvs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ParameterValue pv) |
boolean |
addAll(Collection<? extends ParameterValue> c)
Adds all element to this collection
|
void |
clear()
Throws UnsupportedOperationException
|
boolean |
contains(Object o)
Return true if the list contains the exact same ParameterValue.
|
boolean |
containsAll(Collection<?> c)
Throws UnsupportedOperationException
|
int |
count(Parameter p)
Return the number of values for p
|
void |
forEach(Parameter p,
java.util.function.Consumer<ParameterValue> action)
Performs the given action for each value of the parameter p
The values are considered in insertion order - oldest is first to be processed
|
ParameterValue |
getFirstInserted(Parameter p) |
ParameterValue |
getLastInserted(Parameter p)
Returns the last inserted value for Parameter p or null if there is no value
|
int |
getSize() |
boolean |
isEmpty() |
Iterator<ParameterValue> |
iterator() |
boolean |
remove(Object o)
Throws UnsupportedOperationException
|
boolean |
removeAll(Collection<?> c)
Throws UnsupportedOperationException
|
ParameterValue |
removeFirst(Parameter p)
Remove the first inserted value for Parameter p
|
ParameterValue |
removeLast(Parameter p)
Remove the last inserted value for Parameter p
|
boolean |
retainAll(Collection<?> c)
Throws UnsupportedOperationException
|
int |
size() |
Object[] |
toArray()
Returns a copy of the list as array
|
<T> T[] |
toArray(T[] a)
Throws UnsupportedOperationException
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic ParameterValueList()
public ParameterValueList(Collection<ParameterValue> pvs)
pvs - public boolean add(ParameterValue pv)
add in interface Collection<ParameterValue>public int count(Parameter p)
p - public int getSize()
public ParameterValue getLastInserted(Parameter p)
p - public ParameterValue getFirstInserted(Parameter p)
public void forEach(Parameter p, java.util.function.Consumer<ParameterValue> action)
p - action - public ParameterValue removeLast(Parameter p)
p - public ParameterValue removeFirst(Parameter p)
p - public Iterator<ParameterValue> iterator()
iterator in interface Iterable<ParameterValue>iterator in interface Collection<ParameterValue>public boolean addAll(Collection<? extends ParameterValue> c)
addAll in interface Collection<ParameterValue>c - public void clear()
clear in interface Collection<ParameterValue>public boolean contains(Object o)
contains in interface Collection<ParameterValue>o - public boolean containsAll(Collection<?> c)
containsAll in interface Collection<ParameterValue>public boolean isEmpty()
isEmpty in interface Collection<ParameterValue>public boolean remove(Object o)
remove in interface Collection<ParameterValue>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<ParameterValue>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<ParameterValue>public int size()
size in interface Collection<ParameterValue>public Object[] toArray()
toArray in interface Collection<ParameterValue>public <T> T[] toArray(T[] a)
toArray in interface Collection<ParameterValue>Copyright © 2018 Space Applications Services. All rights reserved.