Searched defs:equivalence (Results 1 - 16 of 16) sorted by relevance

/external/guava/guava-testlib/src/com/google/common/testing/
H A DEquivalenceTester.java36 * To use, create a new {@link EquivalenceTester} and add equivalence groups
52 * arbitrary class without having to explicitly add another equivalence group.
64 private final Equivalence<? super T> equivalence; field in class:EquivalenceTester
68 private EquivalenceTester(Equivalence<? super T> equivalence) { argument
69 this.equivalence = checkNotNull(equivalence);
71 equivalence, "equivalent", "hash", new ItemReporter());
74 public static <T> EquivalenceTester<T> of(Equivalence<? super T> equivalence) { argument
75 return new EquivalenceTester<T>(equivalence);
80 * and not equivalent to objects in any other equivalence grou
[all...]
H A DRelationshipTester.java32 * equivalence classes.
52 private final Equivalence<? super T> equivalence; field in class:RelationshipTester
58 RelationshipTester(Equivalence<? super T> equivalence, String relationshipName, String hashName, argument
60 this.equivalence = checkNotNull(equivalence);
104 equivalence.equivalent(item, related));
106 int itemHash = equivalence.hash(item);
107 int relatedHash = equivalence.hash(related);
118 !equivalence.equivalent(itemInfo.value, unrelatedInfo.value));
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
H A DUtil.java103 Equivalence<T> equivalence, Optional<T> optional) {
105 ? Optional.of(equivalence.wrap(optional.get()))
102 wrapOptionalInEquivalence( Equivalence<T> equivalence, Optional<T> optional) argument
/external/guava/guava/src/com/google/common/collect/
H A DGenericMapMaker.java70 abstract GenericMapMaker<K0, V0> keyEquivalence(Equivalence<Object> equivalence); argument
H A DMapMaker.java147 MapMaker keyEquivalence(Equivalence<Object> equivalence) { argument
148 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence);
149 keyEquivalence = checkNotNull(equivalence);
/external/guava/guava/src/com/google/common/base/
H A DEquivalence.java30 * equivalences are the {@linkplain #identity() identity equivalence} and {@linkplain #equals equals
31 * equivalence}.
49 * <p>The {@code equivalent} method implements an equivalence relation on object references:
91 * according to the definition of the equivalence. The hash need not remain consistent from
93 * <li>It is <i>distributable across equivalence</i>: for any references {@code x} and {@code y},
95 * that the hash be distributable across <i>inequivalence</i>. If {@code equivalence(x, y)}
117 * Returns a new equivalence relation for {@code F} which evaluates equivalence by first applying
120 * equivalence.onResultOf(function).equivalent(a, b)} is true if and only if {@code
121 * equivalence
173 private final Equivalence<? super T> equivalence; field in class:Equivalence.Wrapper
176 Wrapper(Equivalence<? super T> equivalence, @Nullable T reference) argument
260 private final Equivalence<T> equivalence; field in class:Equivalence.EquivalentToPredicate
263 EquivalentToPredicate(Equivalence<T> equivalence, @Nullable T target) argument
[all...]
/external/guava/guava/src/com/google/common/cache/
H A DCacheBuilder.java292 CacheBuilder<K, V> keyEquivalence(Equivalence<Object> equivalence) { argument
293 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence);
294 keyEquivalence = checkNotNull(equivalence);
310 CacheBuilder<K, V> valueEquivalence(Equivalence<Object> equivalence) { argument
312 "value equivalence was already set to %s", valueEquivalence);
313 this.valueEquivalence = checkNotNull(equivalence);
/external/dagger2/lib/
H A Dauto-common-1.0-20151022.071545-39.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/auto/ com/google/auto/common/ ...
H A Dauto-value-1.0.jar ... com.google.common.common.base.Equivalence$Wrapper wrap (javax.lang.model.type ...
H A Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/googlejavaformat/ com/google/googlejavaformat/CloseOp ...
/external/guice/lib/build/
H A Dguava-testlib-16.0.1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/owasp/sanitizer/distrib/lib/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/owasp/sanitizer/lib/guava-libraries/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/guice/lib/
H A Dguava-16.0.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META-INF/maven/com. ...
/external/testng/ant/3rdparty/
H A Ddoclava-1.0.3.jarMETA-INF/MANIFEST.MF assets/html/index.html assets/templates/data.hdf assets/templates/assets/ ...
/external/robolectric/v3/runtime/
H A Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/collect/ ...

Completed in 808 milliseconds