Home | History | Annotate | Download | only in collect

Lines Matching refs:predicate

23 import com.google.common.base.Predicate;
849 * satisfy a predicate. The returned map is a live view of {@code unfiltered};
856 * IllegalArgumentException} if a key that doesn't satisfy the predicate is
872 Map<K, V> unfiltered, final Predicate<? super K> keyPredicate) {
874 Predicate<Entry<K, V>> entryPredicate = new Predicate<Entry<K, V>>() {
887 * satisfy a predicate. The returned map is a live view of {@code unfiltered};
894 * IllegalArgumentException} if a value that doesn't satisfy the predicate is
910 Map<K, V> unfiltered, final Predicate<? super V> valuePredicate) {
912 Predicate<Entry<K, V>> entryPredicate = new Predicate<Entry<K, V>>() {
922 * predicate. The returned map is a live view of {@code unfiltered}; changes
930 predicate is provided. Similarly, the map's entries have a {@link
932 * the existing key and the provided value don't satisfy the predicate.
947 Map<K, V> unfiltered, Predicate<? super Entry<K, V>> entryPredicate) {
960 Predicate<? super Entry<K, V>> entryPredicate) {
961 Predicate<Entry<K, V>> predicate
962 = Predicates.and(map.predicate, entryPredicate);
963 return new FilteredEntryMap<K, V>(map.unfiltered, predicate);
970 final Predicate<? super Entry<K, V>> predicate;
973 Predicate<? super Entry<K, V>> predicate) {
975 this.predicate = predicate;
983 return predicate.apply(Maps.immutableEntry(k, value));
1051 if (Objects.equal(o, entry.getValue()) && predicate.apply(entry)) {
1065 if (collection.contains(entry.getValue()) && predicate.apply(entry)) {
1080 && predicate.apply(entry)) {
1100 Predicate<? super K> keyPredicate;
1102 FilteredKeyMap(Map<K, V> unfiltered, Predicate<? super K> keyPredicate,
1103 Predicate<Entry<K, V>> entryPredicate) {
1113 ? entrySet = Sets.filter(unfiltered.entrySet(), predicate)
1137 * Entries in this set satisfy the predicate, but they don't validate the
1143 Predicate<? super Entry<K, V>> entryPredicate) {
1145 filteredEntrySet = Sets.filter(unfiltered.entrySet(), predicate);
1237 if (!collection.contains(entry.getKey()) && predicate.apply(entry)) {