Java 8 functional interfaces

Consumer, Predicate, and Supplier

@FunctionalInterface public interface Predicate<T> { boolean test(T t); }

@FunctionalInterface public interface Consumer<T> { void accept(T t); }

@FunctionalInterface public interface Supplier<T> { T get(); }

new Function<Integer, List<AssetItemJSON>>() { @Override public List<AssetItemJSON> apply(Integer integer) { return null; } };