- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 13 for alwaysTrue (0.07 seconds)
-
android/guava-tests/test/com/google/common/base/FunctionsTest.java
Function<Object, Boolean> alwaysTrue = Functions.forPredicate(Predicates.alwaysTrue()); Function<Object, Boolean> alwaysFalse = Functions.forPredicate(Predicates.alwaysFalse()); assertTrue(alwaysTrue.apply(0)); assertFalse(alwaysFalse.apply(0)); new EqualsTester() .addEqualityGroup(alwaysTrue, Functions.forPredicate(Predicates.alwaysTrue())) .addEqualityGroup(alwaysFalse)
Created: 2026-04-03 12:43 - Last Modified: 2026-03-16 15:59 - 16.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
Function<Object, Boolean> alwaysTrue = Functions.forPredicate(Predicates.alwaysTrue()); Function<Object, Boolean> alwaysFalse = Functions.forPredicate(Predicates.alwaysFalse()); assertTrue(alwaysTrue.apply(0)); assertFalse(alwaysFalse.apply(0)); new EqualsTester() .addEqualityGroup(alwaysTrue, Functions.forPredicate(Predicates.alwaysTrue())) .addEqualityGroup(alwaysFalse)
Created: 2026-04-03 12:43 - Last Modified: 2026-03-16 15:59 - 16.2K bytes - Click Count (0) -
guava/src/com/google/common/base/Predicates.java
private enum ObjectPredicate implements Predicate<@Nullable Object> { /** * @see Predicates#alwaysTrue() */ ALWAYS_TRUE { @Override public boolean apply(@Nullable Object o) { return true; } @Override public String toString() { return "Predicates.alwaysTrue()"; } }, /** * @see Predicates#alwaysFalse() */
Created: 2026-04-03 12:43 - Last Modified: 2026-03-08 16:16 - 26.6K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Predicates.java
private enum ObjectPredicate implements Predicate<@Nullable Object> { /** * @see Predicates#alwaysTrue() */ ALWAYS_TRUE { @Override public boolean apply(@Nullable Object o) { return true; } @Override public String toString() { return "Predicates.alwaysTrue()"; } }, /** * @see Predicates#alwaysFalse() */
Created: 2026-04-03 12:43 - Last Modified: 2026-03-08 16:16 - 26.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/StandardTable.java
* limitations under the License. */ package com.google.common.collect; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Predicates.alwaysTrue; import static com.google.common.base.Predicates.equalTo; import static com.google.common.base.Predicates.in; import static com.google.common.base.Predicates.not; import static com.google.common.collect.Iterators.emptyIterator;
Created: 2026-04-03 12:43 - Last Modified: 2026-03-08 16:16 - 30.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/StandardTable.java
* limitations under the License. */ package com.google.common.collect; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Predicates.alwaysTrue; import static com.google.common.base.Predicates.equalTo; import static com.google.common.base.Predicates.in; import static com.google.common.base.Predicates.not; import static com.google.common.collect.Iterators.emptyIterator;
Created: 2026-04-03 12:43 - Last Modified: 2025-09-22 18:35 - 29.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
return new IsOdd(); } /* * Tests for Predicates.alwaysTrue(). */ public void testAlwaysTrue_apply() { assertEvalsToTrue(Predicates.alwaysTrue()); } public void testAlwaysTrue_equality() throws Exception { new EqualsTester() .addEqualityGroup(TRUE, Predicates.alwaysTrue()) .addEqualityGroup(isOdd()) .addEqualityGroup(Predicates.alwaysFalse())
Created: 2026-04-03 12:43 - Last Modified: 2026-03-18 18:06 - 32.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
assertEquals(expected, actual); } public void testFilterMatchAll() { Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator(); Iterator<String> filtered = filter(unfiltered, Predicates.alwaysTrue()); List<String> expected = Lists.newArrayList("foo", "bar"); List<String> actual = Lists.newArrayList(filtered); assertEquals(expected, actual); } public void testFilterNothing() {
Created: 2026-04-03 12:43 - Last Modified: 2026-03-13 13:01 - 57.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/FluentIterableTest.java
*/ public void testConcatIntersectionType() { Iterable<A> aIterable = ImmutableList.of(); Iterable<B> bIterable = ImmutableList.of(); Predicate<X> xPredicate = Predicates.alwaysTrue(); Predicate<Y> yPredicate = Predicates.alwaysTrue(); FluentIterable<?> unused = FluentIterable.concat(aIterable, bIterable).filter(xPredicate).filter(yPredicate); /* The following fails to compile: *
Created: 2026-04-03 12:43 - Last Modified: 2026-03-13 13:01 - 31.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
assertEquals(expected, actual); } public void testFilterMatchAll() { Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator(); Iterator<String> filtered = filter(unfiltered, Predicates.alwaysTrue()); List<String> expected = Lists.newArrayList("foo", "bar"); List<String> actual = Lists.newArrayList(filtered); assertEquals(expected, actual); } public void testFilterNothing() {
Created: 2026-04-03 12:43 - Last Modified: 2026-03-13 13:01 - 57.3K bytes - Click Count (0)