Package tools.set

Interface MapKeyProxy<K>

All Known Implementing Classes:
CustomMap.DefaultMapKey

public interface MapKeyProxy<K>
Implementation of the Map with customize hash and equals functions.
Author:
Pavel Ponec
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object o)
    Make equals
    Get the original key
    int
    Calculate hash code
  • Method Details

    • hashCode

      int hashCode()
      Calculate hash code
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(@Nullable @Nullable Object o)
      Make equals
      Overrides:
      equals in class Object
    • getOriginal

      K getOriginal()
      Get the original key