Class 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 other AbstractBiMap subclass.
    • 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 class AbstractBiMap<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 class AbstractBiMap<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