- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for isEven (0.05 sec)
-
android/guava-tests/test/com/google/common/collect/IterablesTest.java
return (n & 1) == 0; // isEven() } })); assertEquals(newArrayList("1", "3", "5"), list); assertFalse( removeIf( transformed, new Predicate<Integer>() { @Override public boolean apply(Integer n) { return (n & 1) == 0; // isEven() } }));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 19:12:33 UTC 2024 - 45K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
assertEquals(expected, actual); } @GwtIncompatible // unreasonably slow public void testFilterUsingIteratorTester() { final List<Integer> list = asList(1, 2, 3, 4, 5); final Predicate<Integer> isEven = new Predicate<Integer>() { @Override public boolean apply(Integer integer) { return integer % 2 == 0; } }; new IteratorTester<Integer>(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
assertEquals(expected, actual); } @GwtIncompatible // unreasonably slow public void testFilterUsingIteratorTester() { final List<Integer> list = asList(1, 2, 3, 4, 5); final Predicate<Integer> isEven = new Predicate<Integer>() { @Override public boolean apply(Integer integer) { return integer % 2 == 0; } }; new IteratorTester<Integer>(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 41.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.6K bytes - Viewed (0) -
istioctl/pkg/install/k8sversion/version_test.go
} versionInvalid1 = &version.Info{ Major: "1", Minor: "7", GitVersion: "v1.invalid.7", } versionInvalid2 = &version.Info{ Major: "one", Minor: "seven", GitVersion: "one.seven", } ) func TestExtractKubernetesVersion(t *testing.T) { cases := []struct { version *version.Info expected int errMsg error isValid bool }{ {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 30 21:50:50 UTC 2024 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java
import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.checkerframework.checker.nullness.qual.Nullable; /** * Used to test listenable future implementations. * * @author Sven Mawson */ public class ListenableFutureTester { private final ExecutorService exec; private final ListenableFuture<?> future; private final CountDownLatch latch;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import junit.framework.TestCase; /** * Test case for {@link ListenableFutureTask}. * * @author Sven Mawson */ public class ListenableFutureTaskTest extends TestCase { private ExecutorService exec; protected final CountDownLatch runLatch = new CountDownLatch(1);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java
import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicInteger; import junit.framework.TestCase; /** * Unit tests for {@link ExecutionList}. * * @author Nishant Thakkar * @author Sven Mawson */ public class ExecutionListTest extends TestCase { private final ExecutionList list = new ExecutionList(); public void testRunOnPopulatedList() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4.7K bytes - Viewed (0)