Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 648 for clears (0.04 sec)

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

          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) {
          return multiset().contains(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)
  2. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

      public void testClear() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        if (supportsRemove()) {
          table.clear();
          assertEquals(0, table.size());
          assertFalse(table.containsRow("foo"));
        } else {
          assertThrows(UnsupportedOperationException.class, () -> table.clear());
        }
      }
    
      public void testPut() {
        assertNull(table.put("foo", 1, cellValue('a')));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeBasedTableRowMapInterfaceTest.java

        table.put("b", "b", "x");
        table.put("b", "c", "y");
        table.put("b", "x", "n");
        table.put("a", "a", "d");
        table.row("b").subMap("c", "x").clear();
        assertEquals(table.row("b"), ImmutableMap.of("b", "x", "x", "n"));
        table.row("b").subMap("b", "y").clear();
        assertEquals(table.row("b"), ImmutableMap.of());
        assertFalse(table.backingMap.containsKey("b"));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 29 15:15:31 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/CaseInsensitiveSet.java

            return map.put(o, PRESENT) == null;
        }
    
        @Override
        public boolean remove(final Object o) {
            return map.remove(o) == PRESENT;
        }
    
        @Override
        public void clear() {
            map.clear();
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/DocMap.java

            return parent.remove(key);
        }
    
        @Override
        public void putAll(final Map<? extends String, ? extends Object> m) {
            parent.putAll(m);
        }
    
        @Override
        public void clear() {
            parent.clear();
        }
    
        @Override
        public Set<String> keySet() {
            return parent.keySet();
        }
    
        @Override
        public Collection<Object> values() {
            return parent.values();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

        return responseQueue.peek() ?: failFastResponse ?: super.peek()
      }
    
      open fun enqueueResponse(response: MockResponse) {
        responseQueue.add(response)
      }
    
      open fun clear() {
        responseQueue.clear()
      }
    
      override fun shutdown() {
        responseQueue.add(DEAD_LETTER)
      }
    
      open fun setFailFast(failFast: Boolean) {
        val failFastResponse =
          if (failFast) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SynchronizedTableTest.java

        public boolean containsValue(@Nullable Object value) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.containsValue(value);
        }
    
        @Override
        public void clear() {
          assertTrue(Thread.holdsLock(mutex));
          delegate.clear();
        }
    
        @Override
        public Collection<V> values() {
          assertTrue(Thread.holdsLock(mutex));
          /* TODO: verify that the Collection is also synchronized? */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/QueryResponseList.java

        @Override
        public boolean addAll(final int index, final Collection<? extends Map<String, Object>> c) {
            return parent.addAll(index, c);
        }
    
        @Override
        public void clear() {
            parent.clear();
        }
    
        @Override
        public boolean contains(final Object o) {
            return parent.contains(o);
        }
    
        @Override
        public boolean containsAll(final Collection<?> c) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

          if (occurrences >= oldCount) {
            values.clear();
          } else {
            Iterator<V> iterator = values.iterator();
            for (int i = 0; i < occurrences; i++) {
              iterator.next();
              iterator.remove();
            }
          }
          return oldCount;
        }
    
        @Override
        public void clear() {
          multimap.clear();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        assertEquals(expected, copyToList(sortedMultiset.entrySet()));
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testClearHeadOpen() {
        List<Entry<E>> expected =
            copyToList(sortedMultiset.tailMultiset(b.getElement(), CLOSED).entrySet());
        sortedMultiset.headMultiset(b.getElement(), OPEN).clear();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top