Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TypeB (0.02 seconds)

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

        HasBoth hasBoth2 = new HasBoth();
        Iterable<TypeA> alist = Lists.newArrayList(hasBoth1, new TypeA(), hasBoth2, new TypeA());
        Iterable<TypeB> blist = filter(alist, TypeB.class);
    
        Iterator<TypeB> expectedIterator = Arrays.<TypeB>asList(hasBoth1, hasBoth2).iterator();
        blist.forEach(b -> assertThat(b).isEqualTo(expectedIterator.next()));
        assertThat(expectedIterator.hasNext()).isFalse();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertCanIterateAgain(filtered);
        assertThat(filtered.toString()).isEqualTo("[foo]");
      }
    
      private static class TypeA {}
    
      private interface TypeB {}
    
      private static class HasBoth extends TypeA implements TypeB {}
    
      @GwtIncompatible // Iterables.filter(Iterable, Class)
      public void testFilterByType() throws Exception {
        HasBoth hasBoth = new HasBoth();
        FluentIterable<TypeA> alist =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
Back to Top