Class KeyedValuesItemKey<K extends Comparable<K>>

    • Constructor Detail

      • KeyedValuesItemKey

        public KeyedValuesItemKey​(K key)
        Creates a new instance.
        Parameters:
        key - the key (null not permitted).
    • Method Detail

      • getKey

        public K getKey()
        Returns the key.
        Returns:
        The key (never null).
      • equals

        public boolean equals​(Object obj)
        Tests this instance for equality with an arbitrary object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object (null not permitted).
        Returns:
        A boolean.
      • toJSONString

        public String toJSONString()
        Description copied from interface: ItemKey
        Returns a JSON formatted string representing the key.
        Specified by:
        toJSONString in interface ItemKey
        Returns:
        A JSON formatted string.