Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ForwardingSet (0.13 sec)

  1. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.collect.ForwardingMap;
    import com.google.common.collect.ForwardingMapEntry;
    import com.google.common.collect.ForwardingSet;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.Maps;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.DoNotCall;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. 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)
  3. guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.collect.ForwardingMap;
    import com.google.common.collect.ForwardingMapEntry;
    import com.google.common.collect.ForwardingSet;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.Maps;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.DoNotCall;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. 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)
  5. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

                          @Override
                          public Set<Entry<String>> entrySet() {
                            final Set<Entry<String>> backingSet = super.entrySet();
                            return new ForwardingSet<Entry<String>>() {
                              @Override
                              protected Set<Entry<String>> delegate() {
                                return backingSet;
                              }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

                          @Override
                          public Set<Entry<String>> entrySet() {
                            final Set<Entry<String>> backingSet = super.entrySet();
                            return new ForwardingSet<Entry<String>>() {
                              @Override
                              protected Set<Entry<String>> delegate() {
                                return backingSet;
                              }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. android/guava/src/com/google/common/collect/Maps.java

          return asMap(set.descendingSet(), function);
        }
      }
    
      private static <E extends @Nullable Object> Set<E> removeOnlySet(final Set<E> set) {
        return new ForwardingSet<E>() {
          @Override
          protected Set<E> delegate() {
            return set;
          }
    
          @Override
          public boolean add(@ParametricNullness E element) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
Back to top