public Predicates2<T, P> and(Predicate2<? super T, ? super P> op) { return Predicates2.and(this, op); }
@Override public int occurrencesOf(Object item) { int index = ArrayIterate.detectIndexWith(this.keys, Predicates2.equal(), item); if (index > -1) { return this.counts[index]; } return 0; }
@Override public boolean containsAll(Collection<?> source) { return Iterate.allSatisfyWith(source, Predicates2.in(), this); }
@Override public ImmutableMap<K, V> reject(Predicate2<? super K, ? super V> predicate) { return this.filter(Predicates2.not(predicate)); }
public static <T> Predicates2<T, Iterable<?>> attributeNotIn(Function<T, ?> function) { return new AttributePredicates2(function, Predicates2.notIn()); }
public static <T> Predicates2<T, Object> attributeNotEqual(Function<? super T, ?> function) { return new AttributePredicates2<>(function, Predicates2.notEqual()); }
public Predicates2<T, P> or(Predicate2<? super T, ? super P> op) { return Predicates2.or(this, op); }
public boolean hasPet(PetType petType) { return this.pets.anySatisfyWith(Predicates2.attributeEqual(Pet::getType), petType); }
@Override public FixedSizeMap<K, V> reject(Predicate2<? super K, ? super V> predicate) { return this.filter(Predicates2.not(predicate)); }
public static <T> Predicates2<T, Iterable<?>> attributeNotIn(Function<T, ?> function) { return new AttributePredicates2(function, Predicates2.notIn()); }
public static <T> Predicates2<T, Object> attributeNotEqual(Function<? super T, ?> function) { return new AttributePredicates2<>(function, Predicates2.notEqual()); }
public Predicates2<T, P> or(Predicate2<? super T, ? super P> op) { return Predicates2.or(this, op); }
public boolean hasPet(PetType petType) { return this.pets.anySatisfyWith(Predicates2.attributeEqual(Pet::getType), petType); }
@Override public boolean containsAll(Collection<?> collection) { return Iterate.allSatisfyWith(collection, Predicates2.in(), this.treeSet); }
@Override public boolean contains(Object o) { return InternalArrayIterate.anySatisfyWith(this.items, this.items.length, Predicates2.equal(), o); }
@Override public FixedSizeMap<K, V> reject(Predicate2<? super K, ? super V> predicate) { return this.filter(Predicates2.not(predicate)); }
@Override public boolean retainAll(Collection<?> collection) { int currentSize = this.size(); this.removeIfWith(Predicates2.notIn(), collection); return currentSize != this.size(); }
public static <T> Predicates2<T, Object> attributeNotEqual(Function<T, ?> function) { return new AttributePredicates2<>(function, Predicates2.notEqual()); }
public Predicates2<T, P> or(Predicate2<? super T, ? super P> op) { return Predicates2.or(this, op); }
public Predicates2<T, P> and(Predicate2<? super T, ? super P> op) { return Predicates2.and(this, op); }