Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 161 for clear (0.16 sec)

  1. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        table.put("cat", 1, 'b');
        table.clear();
        populate(table, data);
        return table;
      }
    
      @Override
      protected TreeBasedTable<String, Integer, Character> create(@Nullable Object... data) {
        TreeBasedTable<String, Integer, Character> table = TreeBasedTable.create();
        table.put("foo", 4, 'a');
        table.put("cat", 1, 'b');
        table.clear();
        populate(table, data);
        return table;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        Collection<V> sampleValueAsCollection = Collections.singleton(sampleValue);
    
        // Test #clear()
        try {
          multimap.clear();
          fail("clear succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
    
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          put(entry.getKey(), entry.getValue());
        }
      }
    
      @Override
      public void clear() {
        if (removalListener != null) {
          for (Entry<K, Timestamped<V>> entry : cachingHashMap.entrySet()) {
            alertListenerIfPresent(entry.getKey(), entry.getValue().getValue(), RemovalCause.EXPLICIT);
          }
        }
        cachingHashMap.clear();
      }
    
      @Override
      public V putIfAbsent(K key, V value) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertEquals(1, segment.count);
        assertSame(newValue, segment.get(key, hash));
    
        // cleared
        segment.setWeakValueReferenceForTesting(entry, oldValueRef);
        oldValueRef.clear();
        assertFalse(segment.replace(key, hash, oldValue, newValue));
        assertEquals(0, segment.count);
        assertNull(segment.get(key, hash));
      }
    
      public void testSegmentReplace() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        assertEquals(1, segment.count);
        assertSame(newValue, segment.get(key, hash));
    
        // cleared
        segment.setWeakValueReferenceForTesting(entry, oldValueRef);
        oldValueRef.clear();
        assertFalse(segment.replace(key, hash, oldValue, newValue));
        assertEquals(0, segment.count);
        assertNull(segment.get(key, hash));
      }
    
      public void testSegmentReplace() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ForwardingMultiset.java

      }
    
      /**
       * A sensible definition of {@link #clear} in terms of the {@code iterator} method of {@link
       * #entrySet}. If you override {@link #entrySet}, you may wish to override {@link #clear} to
       * forward to this implementation.
       *
       * @since 7.0
       */
      @Override
      protected void standardClear() {
        Iterators.clear(entrySet().iterator());
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
    
        if (supportsClear) {
          map.clear();
          assertTrue(map.isEmpty());
        } else {
          try {
            map.clear();
            fail("Expected UnsupportedOperationException.");
          } catch (UnsupportedOperationException expected) {
          }
        }
        assertInvariants(map);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  10. 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());
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 9.9K bytes
    - Viewed (0)
Back to top