Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testFind_firstElement (0.29 sec)

  1. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        list.add("cool");
        assertTrue(Iterators.all(list.iterator(), predicate));
        list.add("pants");
        assertFalse(Iterators.all(list.iterator(), predicate));
      }
    
      public void testFind_firstElement() {
        Iterable<String> list = Lists.newArrayList("cool", "pants");
        Iterator<String> iterator = list.iterator();
        assertEquals("cool", Iterators.find(iterator, Predicates.equalTo("cool")));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

        list.add("cool");
        assertTrue(Iterators.all(list.iterator(), predicate));
        list.add("pants");
        assertFalse(Iterators.all(list.iterator(), predicate));
      }
    
      public void testFind_firstElement() {
        Iterable<String> list = Lists.newArrayList("cool", "pants");
        Iterator<String> iterator = list.iterator();
        assertEquals("cool", Iterators.find(iterator, Predicates.equalTo("cool")));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
Back to top