Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for ForwardingSet (0.15 sec)

  1. guava/src/com/google/common/collect/ForwardingSet.java

     * invoke methods, they invoke methods on the {@code ForwardingSet}.
     *
     * <p>The {@code standard} methods are not guaranteed to be thread-safe, even when all of the
     * methods that they depend on are thread-safe.
     *
     * @author Kevin Bourrillion
     * @author Louis Wasserman
     * @since 2.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ForwardingSet<E extends @Nullable Object> extends ForwardingCollection<E>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  2. 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-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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top