Code example for FluentIterable

Methods: toSortedSettransform

0
          return TypeToken.of(Iterables.getOnlyElement(asList(input.getParameterTypes()))); 
        } 
      }; 
 
  @Test public void staticAssertThatMethodsMatchTestVerbInstanceMethods() {
    ImmutableSortedSet<TypeToken<?>> verbTypes =
        FluentIterable.from(asList(TestVerb.class.getMethods())).filter(new Predicate<Method>() {
          @Override public boolean apply(Method input) {
            return input.getName().equals("that");
          } 
        }).transform(METHOD_TO_RETURN_TYPE_TOKEN).toSortedSet(Ordering.usingToString());
    ImmutableSortedSet<TypeToken<?>> truthTypes =
        FluentIterable.from(asList(Truth.class.getMethods())).filter(new Predicate<Method>() {
          @Override public boolean apply(Method input) {
            return input.getName().equals("assertThat")
                && Modifier.isStatic(input.getModifiers());
          } 
        }).transform(METHOD_TO_RETURN_TYPE_TOKEN).toSortedSet(Ordering.usingToString());
 
    assert_().that(verbTypes).isNotEmpty();
Connect your IDE to all the code out there  Get Codota for Java