Class IDSelector

    • Constructor Summary

      Constructors 
      Constructor Description
      IDSelector​(java.lang.String id)
      ID constructor.
    • Constructor Detail

      • IDSelector

        public IDSelector​(java.lang.String id)
        ID constructor.
        Parameters:
        id - The ID to be selected.
        Throws:
        java.lang.NullPointerException - if the given ID is null.
    • Method Detail

      • getID

        public java.lang.String getID()
        Returns:
        The ID 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​(IDSelector object)

        This implementation compares IDs. 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<IDSelector>