Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 45 for setCounts (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

       *     zero instead.
       */
      @CanIgnoreReturnValue
      int setCount(@ParametricNullness E element, int count);
    
      /**
       * Conditionally sets the count of an element to a new value, as described in {@link
       * #setCount(Object, int)}, provided that the element has the expected current count. If the
       * current count is not {@code oldCount}, no change is made.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 19.5K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Multiset.java

       *     zero instead.
       */
      @CanIgnoreReturnValue
      int setCount(@ParametricNullness E element, int count);
    
      /**
       * Conditionally sets the count of an element to a new value, as described in {@link
       * #setCount(Object, int)}, provided that the element has the expected current count. If the
       * current count is not {@code oldCount}, no change is made.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      }
    
      void expectSetCountFailure(SortedMultiset<E> multiset, Entry<E> entry) {
        try {
          multiset.setCount(entry.getElement(), multiset.count(entry.getElement()));
        } catch (IllegalArgumentException acceptable) {
        }
        try {
          multiset.setCount(entry.getElement(), multiset.count(entry.getElement()) + 1);
          fail("Expected IllegalArgumentException");
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 20:14:36 GMT 2024
    - 26K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/EnumMultiset.java

        } else {
          counts[index] = oldCount - occurrences;
          size -= occurrences;
        }
        return oldCount;
      }
    
      // Modification Operations
      @CanIgnoreReturnValue
      @Override
      public int setCount(E element, int count) {
        checkIsE(element);
        checkNonnegative(count, "count");
        int index = element.ordinal();
        int oldCount = counts[index];
        counts[index] = count;
        size += count - oldCount;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/configuration/internal/CompositeBeanHelperPerformanceTest.java

            public void setDescription(String description) {
                this.description = description;
            }
    
            public int getCount() {
                return count;
            }
    
            public void setCount(int count) {
                this.count = count;
            }
    
            public List<String> getItems() {
                return items;
            }
    
            public void addItem(String item) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 17 07:40:49 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      }
    
      void expectSetCountFailure(SortedMultiset<E> multiset, Entry<E> entry) {
        try {
          multiset.setCount(entry.getElement(), multiset.count(entry.getElement()));
        } catch (IllegalArgumentException acceptable) {
        }
        try {
          multiset.setCount(entry.getElement(), multiset.count(entry.getElement()) + 1);
          fail("Expected IllegalArgumentException");
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 20:14:36 GMT 2024
    - 26K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        @Override
        public int setCount(@ParametricNullness E element, int count) {
          synchronized (mutex) {
            return delegate().setCount(element, count);
          }
        }
    
        @Override
        public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) {
          synchronized (mutex) {
            return delegate().setCount(element, oldCount, newCount);
          }
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 53K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        @Override
        public int setCount(@ParametricNullness E element, int count) {
          synchronized (mutex) {
            return delegate().setCount(element, count);
          }
        }
    
        @Override
        public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) {
          synchronized (mutex) {
            return delegate().setCount(element, oldCount, newCount);
          }
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 56.9K bytes
    - Click Count (0)
  9. cmd/storage-rest_test.go

    		t.Fatalf("UpdateIsLocal failed %v", err)
    	}
    
    	endpoint.PoolIdx = 0
    	endpoint.SetIdx = 0
    	endpoint.DiskIdx = 0
    
    	poolEps := []PoolEndpoints{{
    		Endpoints: Endpoints{endpoint},
    	}}
    	poolEps[0].SetCount = 1
    	poolEps[0].DrivesPerSet = 1
    
    	// Register handlers on newly created servers
    	registerStorageRESTHandlers(tg.Mux[0], poolEps, tg.Managers[0])
    	registerStorageRESTHandlers(tg.Mux[1], poolEps, tg.Managers[1])
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

         * We keep an array of elements and counts.  Periodically -- when we need more room in the
         * array, or when we're building, or the like -- we sort, deduplicate, and combine the counts.
         * Negative counts indicate a setCount operation with ~counts[i].
         */
    
        private final Comparator<? super E> comparator;
    
        @VisibleForTesting E[] elements;
        private int[] counts;
    
        /*
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 35.2K bytes
    - Click Count (0)
Back to Top