Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testSize2NonCollection (0.46 sec)

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

        assertEquals(0, FluentIterable.<String>of().size());
      }
    
      public void testSize1Collection() {
        assertEquals(1, FluentIterable.from(asList("a")).size());
      }
    
      public void testSize2NonCollection() {
        Iterable<Integer> iterable =
            new Iterable<Integer>() {
              @Override
              public Iterator<Integer> iterator() {
                return asList(0, 1).iterator();
              }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(0, Iterables.size(iterable));
      }
    
      public void testSize1Collection() {
        Iterable<String> iterable = singleton("a");
        assertEquals(1, Iterables.size(iterable));
      }
    
      public void testSize2NonCollection() {
        Iterable<Integer> iterable =
            new Iterable<Integer>() {
              @Override
              public Iterator<Integer> iterator() {
                return asList(0, 1).iterator();
              }
            };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top