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 Details

    • serialVersionUID

      private static final long serialVersionUID
      For compatibility with different versions.
      See Also:
    • asSet

      private transient volatile Set<org.opengis.parameter.GeneralParameterDescriptor> 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

      public boolean contains(Object object)
      Tests for the inclusion of the specified descriptor.
      Specified by:
      contains in interface Collection<org.opengis.parameter.GeneralParameterDescriptor>
      Specified by:
      contains in interface List<org.opengis.parameter.GeneralParameterDescriptor>
      Overrides:
      contains in class UnmodifiableArrayList<org.opengis.parameter.GeneralParameterDescriptor>
      Parameters:
      object - the element to check for existence.
      Returns:
      true if this collection contains the given element.