Class KeyNamePair

    • Constructor Detail

      • KeyNamePair

        public KeyNamePair​(int key,
                           String name)
        Constructor KeyValue Pair -
        Parameters:
        key - Key (-1 is considered as null)
        name - string representation
    • Method Detail

      • getKey

        public int getKey()
        Get Key
        Returns:
        key
      • getID

        public String getID()
        Get ID (key as String)
        Specified by:
        getID in class NamePair
        Returns:
        String value of key or null if -1
      • hashCode

        public int hashCode()
        Return Hashcode of key
        Overrides:
        hashCode in class Object
        Returns:
        hascode