public class Capacity<V> extends Object implements Cloneable, Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
Capacity.Visitor<V> |
| Constructor and Description |
|---|
Capacity() |
Capacity(int expectedMaxSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Capacity.Visitor<V> visitor) |
void |
clear() |
Object |
clone() |
boolean |
containsKey(int key) |
V |
get(int key) |
static String |
hostNameOf(InetAddress inetAddress) |
boolean |
isEmpty() |
V |
put(int key,
V value) |
void |
rehash() |
V |
remove(int key) |
int |
size() |
void |
trimToSize() |
public static String hostNameOf(InetAddress inetAddress)
public int size()
public boolean isEmpty()
public V get(int key)
public boolean containsKey(int key)
public void trimToSize()
public void rehash()
public V remove(int key)
public void clear()
public boolean accept(Capacity.Visitor<V> visitor)
Copyright © 2020. All rights reserved.