Package org.apache.sis.parameter
Class DefaultParameterDescriptorGroup.AsList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.apache.sis.internal.util.UnmodifiableArrayList<org.opengis.parameter.GeneralParameterDescriptor>
org.apache.sis.parameter.DefaultParameterDescriptorGroup.AsList
- All Implemented Interfaces:
Serializable,Iterable<org.opengis.parameter.GeneralParameterDescriptor>,Collection<org.opengis.parameter.GeneralParameterDescriptor>,List<org.opengis.parameter.GeneralParameterDescriptor>,RandomAccess,CheckedContainer<org.opengis.parameter.GeneralParameterDescriptor>
- Enclosing class:
- DefaultParameterDescriptorGroup
private static final class DefaultParameterDescriptorGroup.AsList
extends UnmodifiableArrayList<org.opengis.parameter.GeneralParameterDescriptor>
The
DefaultParameterDescriptorGroup.descriptors as an unmodifiable list.
This class overrides contains(Object) with a faster implementation based on HashSet.
This optimizations is helpful for map projection implementations, which test often for a parameter validity.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Set<org.opengis.parameter.GeneralParameterDescriptor>The element as a set, created when first needed.private static final longFor compatibility with different versions.Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionAsList(org.opengis.parameter.GeneralParameterDescriptor[] array) Constructs a list for the specified array. -
Method Summary
Methods inherited from class org.apache.sis.internal.util.UnmodifiableArrayList
arraySize, equals, get, getElementType, indexOf, lastIndexOf, size, subList, toArray, toArray, wrap, wrapMethods inherited from class java.util.AbstractList
add, add, addAll, clear, hashCode, iterator, listIterator, listIterator, remove, removeRange, setMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor compatibility with different versions.- See Also:
-
asSet
The element as a set, created when first needed.
-
-
Constructor Details
-
AsList
public AsList(org.opengis.parameter.GeneralParameterDescriptor[] array) Constructs a list for the specified array.
-
-
Method Details
-
contains
Tests for the inclusion of the specified descriptor.- Specified by:
containsin interfaceCollection<org.opengis.parameter.GeneralParameterDescriptor>- Specified by:
containsin interfaceList<org.opengis.parameter.GeneralParameterDescriptor>- Overrides:
containsin classUnmodifiableArrayList<org.opengis.parameter.GeneralParameterDescriptor>- Parameters:
object- the element to check for existence.- Returns:
trueif this collection contains the given element.
-