Package org.apache.sis.parameter
Class DefaultParameterDescriptorGroup.AsList
java.lang.Object
java.util.AbstractCollection<org.opengis.parameter.GeneralParameterDescriptor>
java.util.AbstractList<org.opengis.parameter.GeneralParameterDescriptor>
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
,SequencedCollection<org.opengis.parameter.GeneralParameterDescriptor>
,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 long
For 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, wrap
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, hashCode, iterator, listIterator, listIterator, remove, removeRange, set
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, addFirst, addLast, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, 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:
contains
in interfaceCollection<org.opengis.parameter.GeneralParameterDescriptor>
- Specified by:
contains
in interfaceList<org.opengis.parameter.GeneralParameterDescriptor>
- Overrides:
contains
in classUnmodifiableArrayList<org.opengis.parameter.GeneralParameterDescriptor>
- Parameters:
object
- the element to check for existence.- Returns:
true
if this collection contains the given element.
-