Package microsim.data

Class MultiKeyHashMap

All Implemented Interfaces:
Serializable, Cloneable, Map<Integer,MultiKeyHashMap.EntryValue>

public class MultiKeyHashMap extends HashMap<Integer,MultiKeyHashMap.EntryValue>
See Also:
  • Constructor Details

    • MultiKeyHashMap

      public MultiKeyHashMap()
  • Method Details

    • getHashKey

      public int getHashKey(@NonNull @NonNull Object @NonNull [] keyArray)
      Calculates the total sum of all hashcodes as if they were simple integers.
      Parameters:
      keyArray - An array of keys which are used for further calculations of hashcodes.
      Returns:
      The total sum of all hashcodes.
      Throws:
      NullPointerException - when the input array or any of its elements is null.
    • containsKey

      public boolean containsKey(@NonNull @NonNull Object @NonNull ... keyArray)
      Searches through all the keys
      Parameters:
      keyArray -
      Returns:
    • put

      @NonNull public @NonNull Object[] put(@NonNull @NonNull Object[] keyArray, @NonNull @NonNull Object[] valueArray)
      Adds
      Parameters:
      keyArray -
      valueArray -
      Returns:
    • remove

      @NonNull public @NonNull Object[] remove(@NonNull @NonNull Object... keyArray)
    • get

      @NonNull public @NonNull Object[] get(@NonNull @NonNull Object... keyArray)