Code example for FluentIterable

Methods: toSet

0
    } 
 
    public ImmutableSet<String> getPropertyNames(){
        return FluentIterable.from(Arrays.asList(annotation.annotationType().getDeclaredMethods()))
                .transform(new MethodNameExtractor())
                .toSet();
    } 
 
    private static final class MethodNameExtractor implements Function<Method, String> {
        @Override 
        public String apply(Method input) {
            return input.getName();
        } 
    } 
 
    @Override 
    public <T> T getProperty(String name, Class<T> type) {
        try { 
            Method annotationParameter = annotation.annotationType().getDeclaredMethod(name);