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 otherAbstractBiMapsubclass.
-
-
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 longserialVersionUID-
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) KcheckKey(K key)Returns its input, or throws an exception if this is not a valid key.(package private) VcheckValue(V value)Returns its input, or throws an exception if this is not a valid value.private voidreadObject(java.io.ObjectInputStream stream)(package private) java.lang.ObjectreadResolve()private voidwriteObject(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:AbstractBiMapReturns its input, or throws an exception if this is not a valid key.- Overrides:
checkKeyin classAbstractBiMap<K,V>
-
checkValue
V checkValue(V value)
Description copied from class:AbstractBiMapReturns its input, or throws an exception if this is not a valid value.- Overrides:
checkValuein 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.IOExceptionjava.lang.ClassNotFoundException
-
readResolve
@GwtIncompatible java.lang.Object readResolve()
-
-