- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for doEquivalent (0.1 sec)
-
android/guava/src/com/google/common/base/FunctionalEquivalence.java
this.function = checkNotNull(function); this.resultEquivalence = checkNotNull(resultEquivalence); } @Override protected boolean doEquivalent(F a, F b) { return resultEquivalence.equivalent(function.apply(a), function.apply(b)); } @Override protected int doHash(F a) { return resultEquivalence.hash(function.apply(a)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon May 01 19:48:29 UTC 2023 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Equivalence.java
if (a == b) { return true; } if (a == null || b == null) { return false; } return doEquivalent(a, b); } /** * * @since 10.0 (previously, subclasses would override equivalent()) */ @ForOverride protected abstract boolean doEquivalent(T a, T b); /** * Returns a hash code for {@code t}. * * <p>The {@code hash} has the following properties: *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu May 16 14:34:47 UTC 2024 - 13.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/PairwiseEquivalence.java
PairwiseEquivalence(Equivalence<E> elementEquivalence) { this.elementEquivalence = Preconditions.checkNotNull(elementEquivalence); } @Override protected boolean doEquivalent(Iterable<T> iterableA, Iterable<T> iterableB) { Iterator<T> iteratorA = iterableA.iterator(); Iterator<T> iteratorB = iterableB.iterator(); while (iteratorA.hasNext() && iteratorB.hasNext()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 23 15:09:35 UTC 2023 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/base/FunctionalEquivalence.java
this.function = checkNotNull(function); this.resultEquivalence = checkNotNull(resultEquivalence); } @Override protected boolean doEquivalent(F a, F b) { return resultEquivalence.equivalent(function.apply(a), function.apply(b)); } @Override protected int doHash(F a) { return resultEquivalence.hash(function.apply(a)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon May 01 19:48:29 UTC 2023 - 2.3K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java
checkRecording(); equivalentExpectations = equivalentExpectationsBuilder.build(); hashExpectations = hashExpectationsBuilder.buildOrThrow(); } @Override protected boolean doEquivalent(Object a, Object b) { return equivalentExpectations.get(a, b); } @Override protected int doHash(Object object) { return hashExpectations.get(object); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 8.3K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java
checkRecording(); equivalentExpectations = equivalentExpectationsBuilder.build(); hashExpectations = hashExpectationsBuilder.buildOrThrow(); } @Override protected boolean doEquivalent(Object a, Object b) { return equivalentExpectations.get(a, b); } @Override protected int doHash(Object object) { return hashExpectations.get(object); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 8.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return Splitter.on(generateString()); } @Generates <T> Equivalence<T> generateEquivalence() { return new Equivalence<T>() { @Override protected boolean doEquivalent(T a, T b) { return false; } @Override protected int doHash(T t) { return 0; } final String string = paramString(Equivalence.class, generateInt());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 28.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return Splitter.on(generateString()); } @Generates <T> Equivalence<T> generateEquivalence() { return new Equivalence<T>() { @Override protected boolean doEquivalent(T a, T b) { return false; } @Override protected int doHash(T t) { return 0; } final String string = paramString(Equivalence.class, generateInt());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 28.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
} public void testSetKeyEquivalence() { Equivalence<Object> testEquivalence = new Equivalence<Object>() { @Override protected boolean doEquivalent(Object a, Object b) { return false; } @Override protected int doHash(Object t) { return 0; } };
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 35.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
} public void testSetKeyEquivalence() { Equivalence<Object> testEquivalence = new Equivalence<Object>() { @Override protected boolean doEquivalent(Object a, Object b) { return false; } @Override protected int doHash(Object t) { return 0; } };
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 35.1K bytes - Viewed (0)