Package com.google.common.collect
Class AbstractBiMap.Inverse<K,V>
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingMap<K,V>
-
- com.google.common.collect.AbstractBiMap<K,V>
-
- com.google.common.collect.AbstractBiMap.Inverse<K,V>
-
- All Implemented Interfaces:
BiMap<K,V>
,java.io.Serializable
,java.util.Map<K,V>
- Enclosing class:
- AbstractBiMap<K,V>
static class AbstractBiMap.Inverse<K,V> extends AbstractBiMap<K,V>
The inverse of any otherAbstractBiMap
subclass.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.AbstractBiMap
AbstractBiMap.BiMapEntry, AbstractBiMap.Inverse<K,V>
-
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
ForwardingMap.StandardEntrySet, ForwardingMap.StandardKeySet, ForwardingMap.StandardValues
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.google.common.collect.AbstractBiMap
inverse
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) K
checkKey(K key)
Returns its input, or throws an exception if this is not a valid key.(package private) V
checkValue(V value)
Returns its input, or throws an exception if this is not a valid value.private void
readObject(java.io.ObjectInputStream stream)
(package private) java.lang.Object
readResolve()
private void
writeObject(java.io.ObjectOutputStream stream)
-
Methods inherited from class com.google.common.collect.AbstractBiMap
clear, containsValue, delegate, entrySet, entrySetIterator, forcePut, inverse, keySet, makeInverse, put, putAll, remove, replaceAll, setDelegates, setInverse, values
-
Methods inherited from class com.google.common.collect.ForwardingMap
containsKey, equals, get, hashCode, isEmpty, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString
-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
-
-
-
Field Detail
-
serialVersionUID
@GwtIncompatible private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Inverse
Inverse(java.util.Map<K,V> backward, AbstractBiMap<V,K> forward)
-
-
Method Detail
-
checkKey
K checkKey(K key)
Description copied from class:AbstractBiMap
Returns its input, or throws an exception if this is not a valid key.- Overrides:
checkKey
in classAbstractBiMap<K,V>
-
checkValue
V checkValue(V value)
Description copied from class:AbstractBiMap
Returns its input, or throws an exception if this is not a valid value.- Overrides:
checkValue
in classAbstractBiMap<K,V>
-
writeObject
@GwtIncompatible private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
readObject
@GwtIncompatible private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
readResolve
@GwtIncompatible java.lang.Object readResolve()
-
-