Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ForwardingSet (0.2 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/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-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)
  8. 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)
  9. guava/src/com/google/common/collect/ForwardingObject.java

      /**
       * Returns the backing delegate instance that methods are forwarded to. Abstract subclasses
       * generally override this method with an abstract method that has a more specific return type,
       * such as {@link ForwardingSet#delegate}. Concrete subclasses override this method to supply the
       * instance being decorated.
       */
      protected abstract Object delegate();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ForwardingSortedSet.java

     *
     * @author Mike Bostock
     * @author Louis Wasserman
     * @since 2.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ForwardingSortedSet<E extends @Nullable Object> extends ForwardingSet<E>
        implements SortedSet<E> {
    
      /** Constructor for use by subclasses. */
      protected ForwardingSortedSet() {}
    
      @Override
      protected abstract SortedSet<E> delegate();
    
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top