Lines Matching refs:inverse
52 private transient AbstractBiMap<V, K> inverse;
59 /** Private constructor for inverse bimap. */
62 inverse = forward;
75 checkState(inverse == null);
80 inverse = new Inverse<V, K>(backward, this);
83 void setInverse(AbstractBiMap<V, K> inverse) {
84 this.inverse = inverse;
90 return inverse.containsKey(value);
110 inverse().remove(value);
124 inverse.delegate.put(newValue, key);
138 inverse.delegate.remove(oldValue);
151 inverse.delegate.clear();
157 public BiMap<V, K> inverse() {
158 return inverse;
222 * We can almost reuse the inverse's keySet, except we have to fix the
230 final Set<V> valuesDelegate = inverse.keySet();
294 inverse.delegate.remove(entry.getValue());
296 * Remove the mapping in inverse before removing from esDelegate because
323 // Preconditions keep the map and inverse consistent.
371 /** The inverse of any other {@code AbstractBiMap} subclass. */
378 * Serialization stores the forward bimap, the inverse of this inverse.
379 * Deserialization calls inverse() on the forward bimap and returns that
380 * inverse.
382 * If a bimap and its inverse are serialized together, the deserialized
383 * instances have inverse() methods that return the other.
392 stream.writeObject(inverse());
405 return inverse().inverse();