public abstract class AbstractHashFunction<K> extends AbstractObject2LongFunction<K> implements Size64
AbstractObject2LongFunction,
by Size64. Moreover, it provides a deprecated size() method that returns
-1 if size64() is -1 or greater than Integer.MAX_VALUE, a size64() returning -1 (that
you are invited to override), and a containsKey(Object) implementation that returns true.defRetValue| Constructor and Description |
|---|
AbstractHashFunction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
int |
size()
Deprecated.
|
long |
size64() |
clear, defaultReturnValue, defaultReturnValue, get, put, put, remove, removeLongclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongpublic boolean containsKey(Object key)
containsKey in interface Function<K,Long>@Deprecated public int size()