Searched refs:BiMap (Results 1 - 22 of 22) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
H A DInverseBiMapTest.java22 * Unit test covering the inverse view of a {@code BiMap}.
28 @Override protected BiMap<Integer, String> create() {
29 BiMap<String, Integer> inverse = HashBiMap.create();
H A DSynchronizedBiMapTest.java39 @Override protected <K, V> BiMap<K, V> create() {
42 BiMap<K, V> outer = Synchronized.biMap(inner, mutex);
46 static class TestBiMap<K, V> extends TestMap<K, V> implements BiMap<K, V> {
47 private final BiMap<K, V> delegate;
49 public TestBiMap(BiMap<K, V> delegate, Object mutex) {
61 public BiMap<V, K> inverse() {
79 BiMap<String, Integer> bimap = create();
80 BiMap<Integer, String> inverse = bimap.inverse();
87 BiMap<String, Integer> map = create();
96 @Override protected BiMap<Intege
[all...]
H A DBiMapMapInterfaceTest.java62 BiMap<String, Integer> bimap = (BiMap<String, Integer>) map;
63 BiMap<Integer, String> inverse = bimap.inverse();
102 BiMap<String, Integer> bimap = HashBiMap.create();
H A DConstrainedBiMapTest.java51 @Override protected BiMap<Integer, String> create() {
H A DHashBiMapTest.java35 @Override protected BiMap<Integer, String> create() {
40 BiMap<String, String> bimap = HashBiMap.create();
61 BiMap<Integer, Integer> bimap = HashBiMap.create(N);
62 BiMap<Integer, Integer> inverse = bimap.inverse();
H A DBiMapCollectionTest.java43 BiMap<String, Integer> bimap = HashBiMap.create();
58 BiMap<Integer, String> bimap = HashBiMap.create();
H A DAbstractBiMapTest.java35 * Common tests for any {@code BiMap}.
42 protected abstract BiMap<Integer, String> create();
44 protected BiMap<Integer, String> bimap;
87 BiMap<Integer, String> biMap = create();
114 BiMap<String, Integer> inverse = bimap.inverse();
124 BiMap<String, Integer> inverse = bimap.inverse();
482 BiMap<Integer, String> copy =
495 final BiMap<Integer, String> forward;
496 final BiMap<String, Integer> backward;
498 BiMapPair(BiMap<Intege
[all...]
H A DMapsTest.java316 tester.setDefault(BiMap.class, ImmutableBiMap.of());
602 private static final BiMap<Integer, String> INT_TO_STRING_MAP =
805 BiMap<Integer, String> mod = HashBiMap.create();
810 BiMap<Number, String> unmod = Maps.<Number, String>unmodifiableBiMap(mod);
836 BiMap<String, Number> inverse = unmod.inverse();
870 BiMap<Integer, String> map = HashBiMap.create();
908 BiMap<String, Integer> bimap = HashBiMap.create();
910 BiMap<String, Integer> sync = Maps.synchronizedBiMap(bimap);
H A DEnumBiMapTest.java123 BiMap<Currency, Country> copy =
H A DEnumHashBiMapTest.java140 BiMap<Currency, String> copy =
H A DMapConstraintsTest.java150 BiMap<String, Integer> map = new AbstractBiMap<String, Integer>(
153 BiMap<String, Integer> constrained = MapConstraints.constrainedBiMap(
174 BiMap<String, Integer> map = new AbstractBiMap<String, Integer>(
177 BiMap<String, Integer> constrained = MapConstraints.constrainedBiMap(
H A DImmutableBiMapTest.java157 BiMap<K, V> bimap = (BiMap<K, V>) map;
/external/guava/guava/src/com/google/common/collect/
H A DBiMap.java36 public interface BiMap<K, V> extends Map<K, V> { interface in inherits:Map
105 BiMap<V, K> inverse();
H A DMapConstraints.java331 public static <K, V> BiMap<K, V> constrainedBiMap( argument
332 BiMap<K, V> map, MapConstraint<? super K, ? super V> constraint) {
338 implements BiMap<K, V> {
343 * inverse BiMap could occur after inverse()'s read of the field's initial
351 volatile BiMap<V, K> inverse;
353 ConstrainedBiMap(BiMap<K, V> delegate, @Nullable BiMap<V, K> inverse, argument
359 @Override protected BiMap<K, V> delegate() {
360 return (BiMap<K, V>) super.delegate();
370 public BiMap<
[all...]
H A DSynchronized.java1098 static <K, V> BiMap<K, V> biMap(BiMap<K, V> bimap, @Nullable Object mutex) {
1107 extends SynchronizedMap<K, V> implements BiMap<K, V>, Serializable {
1109 private transient BiMap<V, K> inverse;
1111 private SynchronizedBiMap(BiMap<K, V> delegate, @Nullable Object mutex, argument
1112 @Nullable BiMap<V, K> inverse) {
1117 @Override BiMap<K, V> delegate() {
1118 return (BiMap<K, V>) super.delegate();
1138 public BiMap<V, K> inverse() {
H A DMaps.java279 * BiMap<Long, String> map = Maps.synchronizedBiMap(
299 public static <K, V> BiMap<K, V> synchronizedBiMap(BiMap<K, V> bimap) {
858 public static <K, V> BiMap<K, V> unmodifiableBiMap(
859 BiMap<? extends K, ? extends V> bimap) {
863 /** @see Maps#unmodifiableBiMap(BiMap) */
865 extends ForwardingMap<K, V> implements BiMap<K, V>, Serializable {
867 final BiMap<? extends K, ? extends V> delegate;
868 transient BiMap<V, K> inverse;
871 UnmodifiableBiMap(BiMap< argument
[all...]
H A DAbstractBiMap.java49 implements BiMap<K, V>, Serializable {
157 public BiMap<V, K> inverse() {
H A DImmutableBiMap.java26 * An immutable {@link BiMap} with reliable user-specified iteration order. Does
44 implements BiMap<K, V> {
198 // TODO(user): if we need to make a copy of a BiMap because the
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DSynchronized.java1085 static <K, V> BiMap<K, V> biMap(BiMap<K, V> bimap, @Nullable Object mutex) {
1094 extends SynchronizedMap<K, V> implements BiMap<K, V>, Serializable {
1096 private transient BiMap<V, K> inverse;
1098 private SynchronizedBiMap(BiMap<K, V> delegate, @Nullable Object mutex, argument
1099 @Nullable BiMap<V, K> inverse) {
1104 @Override BiMap<K, V> delegate() {
1105 return (BiMap<K, V>) super.delegate();
1125 public BiMap<V, K> inverse() {
H A DImmutableBiMap.java28 implements BiMap<K, V> {
H A DMaps.java276 * BiMap<Long, String> map = Maps.synchronizedBiMap(
296 public static <K, V> BiMap<K, V> synchronizedBiMap(BiMap<K, V> bimap) {
829 public static <K, V> BiMap<K, V> unmodifiableBiMap(
830 BiMap<? extends K, ? extends V> bimap) {
834 /** @see Maps#unmodifiableBiMap(BiMap) */
836 extends ForwardingMap<K, V> implements BiMap<K, V>, Serializable {
838 final BiMap<? extends K, ? extends V> delegate;
839 transient BiMap<V, K> inverse;
842 UnmodifiableBiMap(BiMap< argument
[all...]
H A DAbstractBiMap.java45 implements BiMap<K, V>, Serializable {
153 public BiMap<V, K> inverse() {

Completed in 214 milliseconds