Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ForwardingSet (0.32 sec)

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

    import junit.framework.TestSuite;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@code ForwardingSet}.
     *
     * @author Robert Konigsberg
     * @author Louis Wasserman
     */
    public class ForwardingSetTest extends TestCase {
      static class StandardImplForwardingSet<T> extends ForwardingSet<T> {
        private final Set<T> backingSet;
    
        StandardImplForwardingSet(Set<T> backingSet) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ForwardingSetTest.java

    import junit.framework.TestSuite;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@code ForwardingSet}.
     *
     * @author Robert Konigsberg
     * @author Louis Wasserman
     */
    public class ForwardingSetTest extends TestCase {
      static class StandardImplForwardingSet<T> extends ForwardingSet<T> {
        private final Set<T> backingSet;
    
        StandardImplForwardingSet(Set<T> backingSet) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/InvalidatableSet.java

    import com.google.common.base.Supplier;
    import com.google.common.collect.ForwardingSet;
    import java.util.Set;
    
    /**
     * A subclass of `ForwardingSet` that throws `IllegalStateException` on invocation of any method
     * (except `hashCode` and `equals`) if the provided `Supplier` returns false.
     */
    @ElementTypesAreNonnullByDefault
    final class InvalidatableSet<E> extends ForwardingSet<E> {
      private final Supplier<Boolean> validator;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. guava/src/com/google/common/collect/AbstractBiMap.java

      @Override
      public Set<K> keySet() {
        Set<K> result = keySet;
        return (result == null) ? keySet = new KeySet() : result;
      }
    
      @WeakOuter
      private class KeySet extends ForwardingSet<K> {
        @Override
        protected Set<K> delegate() {
          return delegate.keySet();
        }
    
        @Override
        public void clear() {
          AbstractBiMap.this.clear();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

        return (key == null) ? null : Maps.safeGet(delegate, key);
      }
    
      @Override
      ImmutableSet<Entry<K, V>> createEntrySet() {
        return ImmutableSet.unsafeDelegate(
            new ForwardingSet<Entry<K, V>>() {
              @Override
              protected Set<Entry<K, V>> delegate() {
                return delegate.entrySet();
              }
    
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 24 16:03:45 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top