Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for alwaysTrue (0.1 sec)

  1. 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  2. android/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:
         *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("cool", find(list, Predicates.alwaysTrue(), "woot"));
        assertCanIterateAgain(list);
      }
    
      public void testTryFind() {
        Iterable<String> list = newArrayList("cool", "pants");
        assertThat(tryFind(list, equalTo("cool"))).hasValue("cool");
        assertThat(tryFind(list, equalTo("pants"))).hasValue("pants");
        assertThat(tryFind(list, Predicates.alwaysTrue())).hasValue("cool");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  4. 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
Back to top