Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ImprovedAbstractSet (0.26 sec)

  1. android/guava/src/com/google/common/collect/Multisets.java

          @ParametricNullness
          E transform(Entry<E> entry) {
            return entry.getElement();
          }
        };
      }
    
      abstract static class ElementSet<E extends @Nullable Object> extends Sets.ImprovedAbstractSet<E> {
        abstract Multiset<E> multiset();
    
        @Override
        public void clear() {
          multiset().clear();
        }
    
        @Override
        public boolean contains(@CheckForNull Object o) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Multisets.java

          @ParametricNullness
          E transform(Entry<E> entry) {
            return entry.getElement();
          }
        };
      }
    
      abstract static class ElementSet<E extends @Nullable Object> extends Sets.ImprovedAbstractSet<E> {
        abstract Multiset<E> multiset();
    
        @Override
        public void clear() {
          multiset().clear();
        }
    
        @Override
        public boolean contains(@CheckForNull Object o) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/LinkedHashMultimap.java

       * were added to the multimap.
       */
      @Override
      public Collection<V> values() {
        return super.values();
      }
    
      @VisibleForTesting
      @WeakOuter
      final class ValueSet extends Sets.ImprovedAbstractSet<V> implements ValueSetLink<K, V> {
        /*
         * We currently use a fixed load factor of 1.0, a bit higher than normal to reduce memory
         * consumption.
         */
    
        @ParametricNullness private final K key;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/LinkedListMultimap.java

            return new ValueForKeyIterator(key, index);
          }
        };
      }
    
      @Override
      Set<K> createKeySet() {
        @WeakOuter
        class KeySetImpl extends Sets.ImprovedAbstractSet<K> {
          @Override
          public int size() {
            return keyToKeyList.size();
          }
    
          @Override
          public Iterator<K> iterator() {
            return new DistinctKeyIterator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Maps.java

          self.put(entry.getKey(), entry.getValue());
        }
      }
    
      static class KeySet<K extends @Nullable Object, V extends @Nullable Object>
          extends Sets.ImprovedAbstractSet<K> {
        @Weak final Map<K, V> map;
    
        KeySet(Map<K, V> map) {
          this.map = checkNotNull(map);
        }
    
        Map<K, V> map() {
          return map;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Maps.java

          self.put(entry.getKey(), entry.getValue());
        }
      }
    
      static class KeySet<K extends @Nullable Object, V extends @Nullable Object>
          extends Sets.ImprovedAbstractSet<K> {
        @Weak final Map<K, V> map;
    
        KeySet(Map<K, V> map) {
          this.map = checkNotNull(map);
        }
    
        Map<K, V> map() {
          return map;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

    public final class Sets {
      private Sets() {}
    
      /**
       * {@link AbstractSet} substitute without the potentially-quadratic {@code removeAll}
       * implementation.
       */
      abstract static class ImprovedAbstractSet<E extends @Nullable Object> extends AbstractSet<E> {
        @Override
        public boolean removeAll(Collection<?> c) {
          return removeAllImpl(this, c);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multimaps.java

          return map.entrySet().contains(Maps.immutableEntry(key, value));
        }
    
        @Override
        public Set<V> get(@ParametricNullness final K key) {
          return new Sets.ImprovedAbstractSet<V>() {
            @Override
            public Iterator<V> iterator() {
              return new Iterator<V>() {
                int i;
    
                @Override
                public boolean hasNext() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
Back to top