BiMap backed by two EnumMap instances. Null keys and values are not permitted.
An EnumBiMap and its inverse are both serializable.
See the Guava User Guide article on BiMap.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv transient Class | |
| private static final long | |
| pack-priv transient Class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv K | checkKey(K key)
Returns its input, or throws an exception if this is not a valid key.
|
| pack-priv V | checkValue(V value)
Overrides com. |
| public static <K extends Enum | |
| public static <K extends Enum | |
| pack-priv static <K extends Enum | |
| private static <V extends Enum | |
| public Class | |
| private void | |
| public Class | |
| private void |
| keyTypeOrObjectUnderJ2cl | back to summary |
|---|---|
| pack-priv transient Class<K> keyTypeOrObjectUnderJ2cl | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| valueTypeOrObjectUnderJ2cl | back to summary |
|---|---|
| pack-priv transient Class<V> valueTypeOrObjectUnderJ2cl | |
| EnumBiMap | back to summary |
|---|---|
| private EnumBiMap(Class<K> keyTypeOrObjectUnderJ2cl, Class<V> valueTypeOrObjectUnderJ2cl) | |
| checkKey | back to summary |
|---|---|
| pack-priv K checkKey(K key) Overrides com. Doc from com. Returns its input, or throws an exception if this is not a valid key.
| |
| checkValue | back to summary |
|---|---|
| pack-priv V checkValue(V value) Overrides com. Doc from com. Returns its input, or throws an exception if this is not a valid value.
| |
| create | back to summary |
|---|---|
| public static <K extends Enum Returns a new, empty | |
| create | back to summary |
|---|---|
| public static <K extends Enum Returns a new bimap with the same mappings as the specified map. If the specified map is an
| |
| inferKeyTypeOrObjectUnderJ2cl | back to summary |
|---|---|
| pack-priv static <K extends Enum | |
| inferValueTypeOrObjectUnderJ2cl | back to summary |
|---|---|
| private static <V extends Enum | |
| keyType | back to summary |
|---|---|
| public Class Returns the associated key type.
| |
| readObject | back to summary |
|---|---|
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
| |
| valueType | back to summary |
|---|---|
| public Class Returns the associated value type.
| |
| writeObject | back to summary |
|---|---|
private void writeObject(ObjectOutputStream stream) throws IOException
| |