- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 452 for equalTo (0.14 seconds)
-
android/guava-tests/test/com/google/common/base/PredicatesTest.java
.addEqualityGroup(Predicates.equalTo(1), Predicates.equalTo(1)) .addEqualityGroup(Predicates.equalTo(2)) .addEqualityGroup(Predicates.<@Nullable Integer>equalTo(null)) .testEquals(); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testIsEqualTo_serialization() { checkSerialization(Predicates.equalTo(1)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/PredicatesTest.java
.addEqualityGroup(Predicates.equalTo(1), Predicates.equalTo(1)) .addEqualityGroup(Predicates.equalTo(2)) .addEqualityGroup(Predicates.<@Nullable Integer>equalTo(null)) .testEquals(); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testIsEqualTo_serialization() { checkSerialization(Predicates.equalTo(1)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
assertEquals(0, Iterables.indexOf(list, equalTo("mary"))); assertEquals(1, Iterables.indexOf(list, equalTo("bob"))); assertEquals(-1, Iterables.indexOf(list, equalTo("jack"))); } public void testIndexOf_withDuplicates() { List<String> list = Lists.newArrayList("mary", "bob", "bob", "bob", "sam"); assertEquals(0, Iterables.indexOf(list, equalTo("mary")));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 45.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/FluentIterableTest.java
assertThat(iterable.firstMatch(equalTo("cool"))).hasValue("cool"); assertThat(iterable.firstMatch(equalTo("pants"))).hasValue("pants"); assertThat(iterable.firstMatch(Predicates.alwaysFalse())).isAbsent(); assertThat(iterable.firstMatch(Predicates.alwaysTrue())).hasValue("cool"); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 30.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java
multimap.put("foo", 17); multimap.put("bar", 32); multimap.put("foo", 16); multimap = filterKeys(multimap, not(equalTo("foo"))); return filterKeys(multimap, not(equalTo("bar"))); } }) .named("Multimaps.filterKeys[Multimaps.filterKeys[ListMultimap], Predicate]") .withFeatures(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Sep 24 22:52:18 GMT 2025 - 28.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java
multimap.put("foo", 17); multimap.put("bar", 32); multimap.put("foo", 16); multimap = filterKeys(multimap, not(equalTo("foo"))); return filterKeys(multimap, not(equalTo("bar"))); } }) .named("Multimaps.filterKeys[Multimaps.filterKeys[ListMultimap], Predicate]") .withFeatures(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Sep 24 22:52:18 GMT 2025 - 28.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
} public void testComposeOfPredicateAndFunctionIsAssociative() { Map<Float, String> m = ImmutableMap.of(4.0f, "A", 3.0f, "B", 2.0f, "C", 1.0f, "D"); Predicate<? super Integer> h = Predicates.equalTo(42); Function<? super String, Integer> g = new HashCodeFunction(); Function<Float, String> f = Functions.forMap(m, "F"); Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 16K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
} public void testComposeOfPredicateAndFunctionIsAssociative() { Map<Float, String> m = ImmutableMap.of(4.0f, "A", 3.0f, "B", 2.0f, "C", 1.0f, "D"); Predicate<? super Integer> h = Predicates.equalTo(42); Function<? super String, Integer> g = new HashCodeFunction(); Function<Float, String> f = Functions.forMap(m, "F"); Predicate<Float> p1 = Predicates.compose(Predicates.compose(h, g), f);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 16K bytes - Click Count (0) -
guava/src/com/google/common/base/Predicates.java
* the given target or both are null. * * <p><b>Discouraged:</b> Prefer using {@code x -> Objects.equals(x, target)}, but note that * lambdas do not have human-readable {@link #toString()} representations and are not * serializable. */ public static <T extends @Nullable Object> Predicate<T> equalTo(@ParametricNullness T target) { return (target == null)Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 26.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
} boolean hasAnyPositiveInfinity() { return Iterables.any(values, Predicates.equalTo(POSITIVE_INFINITY)); } boolean hasAnyNegativeInfinity() { return Iterables.any(values, Predicates.equalTo(NEGATIVE_INFINITY)); } boolean hasAnyNaN() { return Iterables.any(values, Predicates.equalTo(NaN)); } boolean hasAnyNonFinite() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 23.8K bytes - Click Count (0)