public class RankedSortedParametricFilterCollection extends RankedSortedCollection
RankedSortedCollection
that filters objects that have
not set a given Parametric
parameter to a given value.DEFAULT_INITIAL_CAPACITY, UNLIMITED_CAPACITY
Constructor and Description |
---|
RankedSortedParametricFilterCollection(java.lang.String parameterName,
java.lang.Object[] allowedValues,
boolean allowEmptyParameter)
Constructs an empty collection with default initial capacity and unlimited maximal capacity.
|
RankedSortedParametricFilterCollection(java.lang.String parameterName,
java.lang.Object[] allowedValues,
boolean allowEmptyParameter,
int initialCapacity,
int maximalCapacity)
Constructs an empty collection with the specified initial and maximal capacity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(RankedAbstractObject e)
Adds the specified element to this list.
|
add, add, clear, isEqual, isIgnoringDuplicates, rankObject, remove, remove, removeFirst, removeLast, setIgnoringDuplicates, setMaximalCapacity, toArray, toArray
getLastDistance, getThresholdDistance, iteratorDistanceRestricted, iteratorDistanceRestricted
addAll, addAllSortedArray, clone, clone, compare, contains, containsAll, element, get, getComparator, getMaximalCapacity, isEmpty, isFull, iterator, iterator, offer, peek, poll, popLast, remove, removeAll, removeAll, removeFirstN, retainAll, size, toString
binarySearch, first, fullSearch, indexOf, last, mergeSort
public RankedSortedParametricFilterCollection(java.lang.String parameterName, java.lang.Object[] allowedValues, boolean allowEmptyParameter, int initialCapacity, int maximalCapacity) throws java.lang.IllegalArgumentException, java.lang.NullPointerException
parameterName
- the name of the parameter to filterallowedValues
- the filtering values of the parameter, i.e. the parameter value must be one of the given valuesallowEmptyParameter
- a flag whether to allow objects that either does not implement the Parametric
or do not have the given parameter setinitialCapacity
- the initial capacity of the collectionmaximalCapacity
- the maximal capacity of the collectionjava.lang.IllegalArgumentException
- if the specified initial or maximal capacity is invalidjava.lang.NullPointerException
- if the given parameter name or the allowed values are nullpublic RankedSortedParametricFilterCollection(java.lang.String parameterName, java.lang.Object[] allowedValues, boolean allowEmptyParameter) throws java.lang.NullPointerException
parameterName
- the name of the parameter to filterallowedValues
- the filtering values of the parameter, i.e. the parameter value must be one of the given valuesallowEmptyParameter
- a flag whether to allow objects that either does not implement the Parametric
or do not have the given parameter setjava.lang.NullPointerException
- if the given parameter name or the allowed values are nullpublic boolean add(RankedAbstractObject e)
SortedCollection
add
in interface java.util.Collection<RankedAbstractObject>
add
in interface java.util.Queue<RankedAbstractObject>
add
in class RankedSortedCollection
e
- element to be appended to this list