Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for entryPredicate (0.28 sec)

  1. 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;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 3K bytes
    - Viewed (0)
  2. 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;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 3K bytes
    - Viewed (0)
  3. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/FilteredMultimap.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    interface FilteredMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends Multimap<K, V> {
      Multimap<K, V> unfiltered();
    
      Predicate<? super Entry<K, V>> entryPredicate();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/FilteredMultimap.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    interface FilteredMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends Multimap<K, V> {
      Multimap<K, V> unfiltered();
    
      Predicate<? super Entry<K, V>> entryPredicate();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/FilteredEntrySetMultimap.java

        return (Set<V>) super.replaceValues(key, values);
      }
    
      @Override
      Set<Entry<K, V>> createEntries() {
        return Sets.filter(unfiltered().entries(), entryPredicate());
      }
    
      @Override
      public Set<Entry<K, V>> entries() {
        return (Set<Entry<K, V>>) super.entries();
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 2K bytes
    - Viewed (0)
  7. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  8. 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();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  9. 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();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FilteredEntrySetMultimap.java

        return (Set<V>) super.replaceValues(key, values);
      }
    
      @Override
      Set<Entry<K, V>> createEntries() {
        return Sets.filter(unfiltered().entries(), entryPredicate());
      }
    
      @Override
      public Set<Entry<K, V>> entries() {
        return (Set<Entry<K, V>>) super.entries();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 2K bytes
    - Viewed (0)
Back to top