List of usage examples for com.google.common.base Predicate hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:zotmc.collect.FluentPredicate.java
public static <T> FluentPredicate<T> from(final Predicate<T> predicate) { if (predicate instanceof FluentPredicate) return (FluentPredicate<T>) predicate; return new FluentPredicate<T>() { @Override/*from w ww . j a v a 2 s. co m*/ public boolean apply(T input) { return predicate.apply(input); } @Override protected Predicate<T> unwrap() { return predicate; } @Override public int hashCode() { return predicate.hashCode(); } @Override public String toString() { return predicate.toString(); } }; }