Lines Matching refs:inverse
49 transient AbstractBiMap<V, K> inverse;
56 /** Private constructor for inverse bimap. */
59 inverse = forward;
86 checkState(inverse == null);
91 inverse = new Inverse<V, K>(backward, this);
94 void setInverse(AbstractBiMap<V, K> inverse) {
95 this.inverse = inverse;
101 return inverse.containsKey(value);
123 inverse().remove(value);
137 inverse.delegate.put(newValue, key);
151 inverse.delegate.remove(oldValue);
164 inverse.delegate.clear();
170 public BiMap<V, K> inverse() {
171 return inverse;
215 * We can almost reuse the inverse's keySet, except we have to fix the
223 final Set<V> valuesDelegate = inverse.keySet();
271 inverse.delegate.remove(entry.getValue());
273 * Remove the mapping in inverse before removing from esDelegate because
300 // Preconditions keep the map and inverse consistent.
348 /** The inverse of any other {@code AbstractBiMap} subclass. */
355 * Serialization stores the forward bimap, the inverse of this inverse.
356 * Deserialization calls inverse() on the forward bimap and returns that
357 * inverse.
359 * If a bimap and its inverse are serialized together, the deserialized
360 * instances have inverse() methods that return the other.
365 return inverse.checkValue(key);
370 return inverse.checkKey(value);