Class TypeSelector

  • All Implemented Interfaces:
    SimpleSelector, java.lang.Comparable<TypeSelector>

    public class TypeSelector
    extends java.lang.Object
    implements SimpleSelector, java.lang.Comparable<TypeSelector>
    A type simple selector. This implementation represents the universal selector by an instance of a type selector with the type "*".
    Author:
    Garret Wilson
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeSelector​(java.lang.String typeName)
      Type name constructor.
    • Constructor Detail

      • TypeSelector

        public TypeSelector​(java.lang.String typeName)
        Type name constructor.
        Parameters:
        typeName - The name of the type to be selected.
        Throws:
        java.lang.NullPointerException - if the given type name is null.
    • Method Detail

      • getTypeName

        public java.lang.String getTypeName()
        Returns:
        The type to be selected.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(TypeSelector object)

        This implementation compares type names. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

        Specified by:
        compareTo in interface java.lang.Comparable<TypeSelector>