Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ForwardingSet (0.07 sec)

  1. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

          this.delegate = delegate;
        }
    
        @Override
        protected Map<K, V> delegate() {
          return delegate;
        }
    
        @Override
        public Set<K> keySet() {
          return new ForwardingSet<K>() {
            @Override
            protected Set<K> delegate() {
              return delegate.keySet();
            }
    
            @Override
            public Iterator<K> iterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

          return new AddRejectingSet<>(key);
        } else {
          return new AddRejectingList<>(key);
        }
      }
    
      static class AddRejectingSet<K extends @Nullable Object, V extends @Nullable Object>
          extends ForwardingSet<V> {
        @ParametricNullness final K key;
    
        AddRejectingSet(@ParametricNullness K key) {
          this.key = key;
        }
    
        @Override
        public boolean add(@ParametricNullness V element) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

              return true;
            }
          }
        }
        return false;
      }
    
      // Views
    
      @Override
      Set<E> createElementSet() {
        Set<E> delegate = countMap.keySet();
        return new ForwardingSet<E>() {
          @Override
          protected Set<E> delegate() {
            return delegate;
          }
    
          @Override
          public boolean contains(@CheckForNull Object object) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

                  .that(immutableCopy)
                  .isIn(distinctCandidatesByAscendingSize);
            }
          }
        }
      }
    
      private static final class MutatedOnQuerySet<E> extends ForwardingSet<E> {
        final Iterator<ImmutableSet<E>> infiniteCandidates;
    
        MutatedOnQuerySet(Iterable<ImmutableSet<E>> infiniteCandidates) {
          this.infiniteCandidates = infiniteCandidates.iterator();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        CountingSupplier<Set<Integer>> factory =
            new SetSupplier() {
              @Override
              public Set<Integer> getImpl() {
                final Set<Integer> backing = super.getImpl();
                return new ForwardingSet<Integer>() {
                  @Override
                  protected Set<Integer> delegate() {
                    return backing;
                  }
    
                  @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top