Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for entryPredicate (0.17 sec)

  1. android/guava/src/com/google/common/collect/FilteredMultimapValues.java

      }
    
      @Override
      public boolean remove(@CheckForNull Object o) {
        Predicate<? super Entry<K, V>> entryPredicate = multimap.entryPredicate();
        for (Iterator<Entry<K, V>> unfilteredItr = multimap.unfiltered().entries().iterator();
            unfilteredItr.hasNext(); ) {
          Entry<K, V> entry = unfilteredItr.next();
          if (entryPredicate.apply(entry) && Objects.equal(entry.getValue(), o)) {
            unfilteredItr.remove();
            return true;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

        private final Predicate<? super Entry<K, V>> entryPredicate;
        private final Map<K, V> filteredDelegate;
    
        FilteredEntryNavigableMap(
            NavigableMap<K, V> unfiltered, Predicate<? super Entry<K, V>> entryPredicate) {
          this.unfiltered = checkNotNull(unfiltered);
          this.entryPredicate = entryPredicate;
          this.filteredDelegate = new FilteredEntryMap<>(unfiltered, entryPredicate);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Maps.java

        private final Predicate<? super Entry<K, V>> entryPredicate;
        private final Map<K, V> filteredDelegate;
    
        FilteredEntryNavigableMap(
            NavigableMap<K, V> unfiltered, Predicate<? super Entry<K, V>> entryPredicate) {
          this.unfiltered = checkNotNull(unfiltered);
          this.entryPredicate = entryPredicate;
          this.filteredDelegate = new FilteredEntryMap<>(unfiltered, entryPredicate);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

        this.keyPredicate = checkNotNull(keyPredicate);
      }
    
      @Override
      public Multimap<K, V> unfiltered() {
        return unfiltered;
      }
    
      @Override
      public Predicate<? super Entry<K, V>> entryPredicate() {
        return Maps.keyPredicateOnEntries(keyPredicate);
      }
    
      @Override
      public int size() {
        int size = 0;
        for (Collection<V> collection : asMap().values()) {
          size += collection.size();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multimaps.java

          return filterEntries((SetMultimap<K, V>) unfiltered, entryPredicate);
        }
        return (unfiltered instanceof FilteredMultimap)
            ? filterFiltered((FilteredMultimap<K, V>) unfiltered, entryPredicate)
            : new FilteredEntryMultimap<K, V>(checkNotNull(unfiltered), entryPredicate);
      }
    
      /**
       * Returns a multimap containing the mappings in {@code unfiltered} that satisfy a predicate. The
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/FilteredEntryMultimap.java

        this.predicate = checkNotNull(predicate);
      }
    
      @Override
      public Multimap<K, V> unfiltered() {
        return unfiltered;
      }
    
      @Override
      public Predicate<? super Entry<K, V>> entryPredicate() {
        return predicate;
      }
    
      @Override
      public int size() {
        return entries().size();
      }
    
      private boolean satisfies(@ParametricNullness K key, @ParametricNullness V value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

        this.predicate = checkNotNull(predicate);
      }
    
      @Override
      public Multimap<K, V> unfiltered() {
        return unfiltered;
      }
    
      @Override
      public Predicate<? super Entry<K, V>> entryPredicate() {
        return predicate;
      }
    
      @Override
      public int size() {
        return entries().size();
      }
    
      private boolean satisfies(@ParametricNullness K key, @ParametricNullness V value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

     *
     * @author Jared Levy
     */
    @GwtIncompatible // nottested
    public class FilteredMultimapTest extends TestCase {
    
      private static final Predicate<Entry<String, Integer>> ENTRY_PREDICATE =
          new Predicate<Entry<String, Integer>>() {
            @Override
            public boolean apply(Entry<String, Integer> entry) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

     *
     * @author Jared Levy
     */
    @GwtIncompatible // nottested
    public class FilteredMultimapTest extends TestCase {
    
      private static final Predicate<Entry<String, Integer>> ENTRY_PREDICATE =
          new Predicate<Entry<String, Integer>>() {
            @Override
            public boolean apply(Entry<String, Integer> entry) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top