Package smile.hash

Class PerfectMap<T>

java.lang.Object
smile.hash.PerfectMap<T>
Type Parameters:
T - the data type of set objects.

public class PerfectMap<T> extends Object
Perfect hash based immutable map. This can be used as a lookup table with constant worst-case access time.
  • Method Details

    • get

      public T get(String key)
      Returns the value associated with the key. Returns null if the key doesn't exist in the map.
      Parameters:
      key - the key.
      Returns:
      the value or null.