Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for clear_ (0.14 sec)

  1. 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;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  2. 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() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multisets.java

        };
      }
    
      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) {
          return multiset().contains(o);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      }
    
      @Override
      public void clear() {
        if (needsAllocArrays()) {
          return;
        }
        this.firstEntry = ENDPOINT;
        this.lastEntry = ENDPOINT;
        if (links != null) {
          Arrays.fill(links, 0, size(), 0);
        }
        super.clear();
      }
    
      /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableRangeMap.java

       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final void clear() {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the {@code RangeMap} unmodified.
       *
       * @throws UnsupportedOperationException always
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMultiset.java

            }
            remaining--;
            /*
             * requireNonNull is safe because `remaining` starts at 0, forcing us to initialize
             * `element` above. After that, we never clear it.
             */
            return requireNonNull(element);
          }
        };
      }
    
      @LazyInit @CheckForNull private transient ImmutableList<E> asList;
    
      @Override
      public ImmutableList<E> asList() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterables.java

                slowRemoveIfForRemainingElements(list, predicate, to, from);
                return true;
              }
            }
            to++;
          }
        }
    
        // Clear the tail of any remaining items
        list.subList(to, list.size()).clear();
        return from != to;
      }
    
      private static <T extends @Nullable Object> void slowRemoveIfForRemainingElements(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

         */
        /*
         * TODO(cpovirk): use Object[] instead of E[] in the mainline? (The backport is different and
         * doesn't need this suppression, but we keep it to minimize diffs.) Generally be more clear
         * about when we have an Object[] vs. a Comparable[] or other array type in internalArray? If we
         * used Object[], we might be able to optimize toArray() to use clone() sometimes. (See
         * cl/592273615 and cl/592273683.)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertEquals(RemovalCause.REPLACED, notification.getCause());
        assertTrue(listener.isEmpty());
    
        // inactive
        Object value3 = new Object();
        map.clear();
        listener.clear();
        assertEquals(0, segment.count);
        table.set(index, entry);
        assertTrue(segment.storeLoadedValue(key, hash, valueRef, value3));
        assertSame(value3, segment.get(key, hash));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertEquals(RemovalCause.REPLACED, notification.getCause());
        assertTrue(listener.isEmpty());
    
        // inactive
        Object value3 = new Object();
        map.clear();
        listener.clear();
        assertEquals(0, segment.count);
        table.set(index, entry);
        assertTrue(segment.storeLoadedValue(key, hash, valueRef, value3));
        assertSame(value3, segment.get(key, hash));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
Back to top