Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 144 for clear (0.41 sec)

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

        }
        return null;
      }
    
      /**
       * A sensible definition of {@link #clear} in terms of the {@code iterator} method of {@link
       * #entrySet}. In many cases, you may wish to override {@link #clear} to forward to this
       * implementation.
       *
       * @since 7.0
       */
      protected void standardClear() {
        Iterators.clear(entrySet().iterator());
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/FilteredEntryMultimap.java

        return (unfiltered instanceof SetMultimap)
            ? Collections.<V>emptySet()
            : Collections.<V>emptyList();
      }
    
      @Override
      public void clear() {
        entries().clear();
      }
    
      @Override
      public Collection<V> get(@ParametricNullness K key) {
        return filterCollection(unfiltered.get(key), new ValuePredicate(key));
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractBiMap.java

        for (Entry<? extends K, ? extends V> entry : map.entrySet()) {
          put(entry.getKey(), entry.getValue());
        }
      }
    
      @Override
      public void clear() {
        delegate.clear();
        inverse.delegate.clear();
      }
    
      // Views
    
      @Override
      public BiMap<V, K> inverse() {
        return inverse;
      }
    
      @LazyInit @CheckForNull private transient Set<K> keySet;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        totalSize -= collection.size();
        collection.clear();
    
        return unmodifiableCollectionSubclass(output);
      }
    
      <E extends @Nullable Object> Collection<E> unmodifiableCollectionSubclass(
          Collection<E> collection) {
        return Collections.unmodifiableCollection(collection);
      }
    
      @Override
      public void clear() {
        // Clear each collection, to make previously returned collections empty.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 46.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Collections2.java

          this.fromCollection = checkNotNull(fromCollection);
          this.function = checkNotNull(function);
        }
    
        @Override
        public void clear() {
          fromCollection.clear();
        }
    
        @Override
        public boolean isEmpty() {
          return fromCollection.isEmpty();
        }
    
        @Override
        public Iterator<T> iterator() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/StandardTable.java

       * clear()} clears all table mappings.
       */
      @WeakOuter
      private abstract class TableSet<T> extends ImprovedAbstractSet<T> {
        @Override
        public boolean isEmpty() {
          return backingMap.isEmpty();
        }
    
        @Override
        public void clear() {
          backingMap.clear();
        }
      }
    
      /**
       * {@inheritDoc}
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 30.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/StandardTable.java

       * clear()} clears all table mappings.
       */
      @WeakOuter
      private abstract class TableSet<T> extends ImprovedAbstractSet<T> {
        @Override
        public boolean isEmpty() {
          return backingMap.isEmpty();
        }
    
        @Override
        public void clear() {
          backingMap.clear();
        }
      }
    
      /**
       * {@inheritDoc}
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 29.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

            last = null;
          }
        };
      }
    
      @Override
      public Iterator<E> iterator() {
        return Multisets.iteratorImpl(this);
      }
    
      @Override
      public void clear() {
        countMap.clear();
      }
    
      @WeakOuter
      private class EntrySet extends AbstractMultiset<E>.EntrySet {
        @Override
        ConcurrentHashMultiset<E> multiset() {
          return ConcurrentHashMultiset.this;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

            last = null;
          }
        };
      }
    
      @Override
      public Iterator<E> iterator() {
        return Multisets.iteratorImpl(this);
      }
    
      @Override
      public void clear() {
        countMap.clear();
      }
    
      @WeakOuter
      private class EntrySet extends AbstractMultiset<E>.EntrySet {
        @Override
        ConcurrentHashMultiset<E> multiset() {
          return ConcurrentHashMultiset.this;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeMultiset.java

      }
    
      @Override
      public void clear() {
        if (!range.hasLowerBound() && !range.hasUpperBound()) {
          // We can do this in O(n) rather than removing one by one, which could force rebalancing.
          for (AvlNode<E> current = header.succ(); current != header; ) {
            AvlNode<E> next = current.succ();
    
            current.elemCount = 0;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 34.2K bytes
    - Viewed (0)
Back to top