Class CollectionType


  • public final class CollectionType
    extends Object
    Type-safe enumeration of THREDDS coherent collection types.
    • Method Detail

      • findType

        public static CollectionType findType​(String name)
        Return the known CollectionType that matches the given name (ignoring case) or null if the name is unknown.
        Parameters:
        name - name of the desired CollectionType.
        Returns:
        CollectionType or null if no match.
      • getType

        public static CollectionType getType​(String name)
        Return a CollectionType that matches the given name by either matching a known type (ignoring case) or creating an unknown type.
        Parameters:
        name - name of the desired CollectionType
        Returns:
        the named CollectionType or null if given name is null.
      • toString

        public String toString()
        Return the collection name.
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Override Object.hashCode() to be consistent with this equals.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object o)
        CollectionType with same name are equal.
        Overrides:
        equals in class Object