Package smile.hash
Class PerfectMap<T>
java.lang.Object
smile.hash.PerfectMap<T>
- Type Parameters:
T
- the data type of set objects.
Perfect hash based immutable map. This can be used as a lookup table with
constant worst-case access time.
-
Nested Class Summary
-
Method Summary
-
Method Details
-
get
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.
-