Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 211 for refcount (0.18 sec)

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

       * @param newCount the desired count of the element in this multiset
       * @return {@code true} if the condition for modification was met. This implies that the multiset
       *     was indeed modified, unless {@code oldCount == newCount}.
       * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is negative
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 21K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ForwardingMultiset.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public int setCount(@ParametricNullness E element, int count) {
        return delegate().setCount(element, count);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) {
        return delegate().setCount(element, oldCount, newCount);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       *     been modified, but not always: in the case that {@code expectedOldCount == newCount}, the
       *     method will return {@code true} if the condition was met.
       * @throws IllegalArgumentException if {@code expectedOldCount} or {@code newCount} is negative
       */
      @CanIgnoreReturnValue
      @Override
      public boolean setCount(E element, int expectedOldCount, int newCount) {
        checkNotNull(element);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multiset.java

       * @param newCount the desired count of the element in this multiset
       * @return {@code true} if the condition for modification was met. This implies that the multiset
       *     was indeed modified, unless {@code oldCount == newCount}.
       * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is negative
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  5. pkg/kubelet/winstats/perfcounters.go

    	}
    
    	filledBuf := make([]win_pdh.PDH_FMT_COUNTERVALUE_ITEM_DOUBLE, bufCount*size)
    	ret = win_pdh.PdhGetFormattedCounterArrayDouble(p.counterHandle, &bufSize, &bufCount, &filledBuf[0])
    	if ret != win_pdh.ERROR_SUCCESS {
    		return nil, 0, fmt.Errorf("unable to collect data from counter. Error code is %x", ret)
    	}
    
    	return filledBuf, bufCount, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 19:13:24 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        V put(K key, int hash, V value, boolean onlyIfAbsent) {
          lock();
          try {
            preWriteCleanup();
    
            int newCount = this.count + 1;
            if (newCount > this.threshold) { // ensure capacity
              expand();
              newCount = this.count + 1;
            }
    
            AtomicReferenceArray<E> table = this.table;
            int index = hash & (table.length() - 1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        assertEquals(3, entry.getCount());
        assertTrue(getMultiset().remove(e0()));
        assertEquals(2, entry.getCount());
        assertTrue(getMultiset().elementSet().remove(e0()));
        assertEquals(0, entry.getCount());
        getMultiset().add(e0(), 2);
        assertEquals(2, entry.getCount());
      }
    
      public void testToString() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 9.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMultiset.java

      public final boolean setCount(E element, int oldCount, int newCount) {
        throw new UnsupportedOperationException();
      }
    
      @GwtIncompatible // not present in emulated superclass
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        for (Multiset.Entry<E> entry : entrySet()) {
          Arrays.fill(dst, offset, offset + entry.getCount(), entry.getElement());
          offset += entry.getCount();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        assertEquals(3, entry.getCount());
        assertTrue(getMultiset().remove(e0()));
        assertEquals(2, entry.getCount());
        assertTrue(getMultiset().elementSet().remove(e0()));
        assertEquals(0, entry.getCount());
        getMultiset().add(e0(), 2);
        assertEquals(2, entry.getCount());
      }
    
      public void testToString() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 9.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CountingInputStreamTest.java

        assertEquals(3, counter.getCount());
      }
    
      public void testSkip() throws IOException {
        assertEquals(10, counter.skip(10));
        assertEquals(10, counter.getCount());
      }
    
      public void testSkipEOF() throws IOException {
        assertEquals(20, counter.skip(30));
        assertEquals(20, counter.getCount());
        assertEquals(0, counter.skip(20));
        assertEquals(20, counter.getCount());
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top