Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for isEven (0.05 sec)

  1. 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)
  2. 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)
  3. 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)
  4. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

                "four", 4,
                "five", 5,
                "six", 6,
                "seven", 7),
            "one",
            1,
            "two",
            2,
            "three",
            3,
            "four",
            4,
            "five",
            5,
            "six",
            6,
            "seven",
            7);
        assertMapEquals(
            ImmutableBiMap.of(
                "one", 1,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                "four", 4,
                "five", 5,
                "six", 6,
                "seven", 7),
            "one",
            1,
            "two",
            2,
            "three",
            3,
            "four",
            4,
            "five",
            5,
            "six",
            6,
            "seven",
            7);
        assertMapEquals(
            ImmutableMap.of(
                "one", 1,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                "four", 4,
                "five", 5,
                "six", 6,
                "seven", 7),
            "one",
            1,
            "two",
            2,
            "three",
            3,
            "four",
            4,
            "five",
            5,
            "six",
            6,
            "seven",
            7);
        assertMapEquals(
            ImmutableMap.of(
                "one", 1,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top