Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 850 for clear (0.1 sec)

  1. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

        }
      }
    
    
      public void testKeySet_clear() {
        for (LoadingCache<Object, Object> cache : caches()) {
          warmUp(cache, 0, 100);
    
          Set<Object> keys = cache.asMap().keySet();
          keys.clear();
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_empty_remove() {
        for (LoadingCache<Object, Object> cache : caches()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. internal/grid/msg.go

    		res = append(res, "SUB")
    	}
    	return "[" + strings.Join(res, ",") + "]"
    }
    
    // Set one or more flags on f.
    func (f *Flags) Set(flags Flags) {
    	*f |= flags
    }
    
    // Clear one or more flags on f.
    func (f *Flags) Clear(flags Flags) {
    	*f &^= flags
    }
    
    // parse an incoming message.
    func (m *message) parse(b []byte) (*subHandlerID, []byte, error) {
    	var sub *subHandlerID
    	if m.Payload == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. android/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)
  4. src/test/java/org/codelibs/core/beans/factory/BeanDescFactoryTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testClear() throws Exception {
            final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyBean.class);
            BeanDescFactory.clear();
            assertThat(BeanDescFactory.getBeanDesc(MyBean.class), is(not(sameInstance(beanDesc))));
        }
    
        /**
         *
         */
        public static class MyBean {
    
            /**
             * @return String
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
    
        if (supportsClear) {
          map.clear();
          assertTrue(map.isEmpty());
        } else {
          assertThrows(UnsupportedOperationException.class, () -> map.clear());
        }
        assertInvariants(map);
      }
    
      @J2ktIncompatible // https://youtrack.jetbrains.com/issue/KT-58242/ undefined behavior (crash)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/ArrayMap.java

            removeMap(e.key);
            e.clear();
            return value;
        }
    
        @Override
        public void putAll(final Map<? extends K, ? extends V> map) {
            for (final Map.Entry<? extends K, ? extends V> entry : map.entrySet()) {
                put(entry.getKey(), entry.getValue());
            }
        }
    
        @Override
        public void clear() {
            for (int i = 0; i < mapTable.length; i++) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Maps.java

            K k = (K) key;
            return function.apply(k);
          } else {
            return null;
          }
        }
    
        @Override
        public void clear() {
          backingSet().clear();
        }
    
        @Override
        protected Set<Entry<K, V>> createEntrySet() {
          @WeakOuter
          class EntrySetImpl extends EntrySet<K, V> {
            @Override
            Map<K, V> map() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Maps.java

            K k = (K) key;
            return function.apply(k);
          } else {
            return null;
          }
        }
    
        @Override
        public void clear() {
          backingSet().clear();
        }
    
        @Override
        protected Set<Entry<K, V>> createEntrySet() {
          @WeakOuter
          class EntrySetImpl extends EntrySet<K, V> {
            @Override
            Map<K, V> map() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/app/pager/DataConfigPagerTest.java

    public class DataConfigPagerTest extends UnitFessTestCase {
    
        public void test_DataConfigPager() {
            DataConfigPager dataconfigpager = new DataConfigPager();
    
            dataconfigpager.clear();
            assertEquals(0, dataconfigpager.getAllRecordCount());
            assertEquals(0, dataconfigpager.getAllPageCount());
            assertEquals(false, dataconfigpager.isExistPrePage());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/HashBiMap.java

        BiMap<K, V> forward() {
          return HashBiMap.this;
        }
    
        @Override
        public int size() {
          return size;
        }
    
        @Override
        public void clear() {
          forward().clear();
        }
    
        @Override
        public boolean containsKey(@CheckForNull Object value) {
          return forward().containsValue(value);
        }
    
        @Override
        @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
Back to top