Class CompositeKey


  • public final class CompositeKey
    extends Object
    A class that can be used to combine multiple objects as one key. Useful for example in maps.
    • Constructor Detail

      • CompositeKey

        public CompositeKey​(Object[] keys)
        Parameters:
        keys - array of key objects
    • Method Detail

      • getKeyElements

        public Object[] getKeyElements()
        Returns:
        the array of key objects
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object