Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 86 for occurrences (0.04 seconds)

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

        public int add(@ParametricNullness E element, int occurrences) {
          checkArgument(
              predicate.apply(element), "Element %s does not match predicate %s", element, predicate);
          return unfiltered.add(element, occurrences);
        }
    
        @Override
        public int remove(@Nullable Object element, int occurrences) {
          checkNonnegative(occurrences, "occurrences");
          if (occurrences == 0) {
            return count(element);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

         * @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation
         *     would result in more than {@link Integer#MAX_VALUE} occurrences of the element
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> addCopies(E element, int occurrences) {
          checkNotNull(element);
          CollectPreconditions.checkNonnegative(occurrences, "occurrences");
          if (occurrences == 0) {
    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)
  3. guava/src/com/google/common/collect/ForwardingMultiset.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public int add(@ParametricNullness E element, int occurrences) {
        return delegate().add(element, occurrences);
      }
    
      @CanIgnoreReturnValue
      @Override
      public int remove(@Nullable Object element, int occurrences) {
        return delegate().remove(element, occurrences);
      }
    
      @Override
      public Set<E> elementSet() {
        return delegate().elementSet();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/TreeMultiset.java

          return 0;
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public int add(@ParametricNullness E element, int occurrences) {
        checkNonnegative(occurrences, "occurrences");
        if (occurrences == 0) {
          return count(element);
        }
        checkArgument(range.contains(element));
        AvlNode<E> root = rootReference.get();
        if (root == null) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 34.3K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       * words, for the default {@code expectContents()} implementation, the number of occurrences of
       * each given element has increased by one since the test collection was created, and the number
       * of occurrences of all other elements has not changed.
       *
       * <p>Note: This means that a test like the following will fail if {@code collection} is a {@code
       * Set}:
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/TreeMultiset.java

          return 0;
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public int add(@ParametricNullness E element, int occurrences) {
        checkNonnegative(occurrences, "occurrences");
        if (occurrences == 0) {
          return count(element);
        }
        checkArgument(range.contains(element));
        AvlNode<E> root = rootReference.get();
        if (root == null) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 33.9K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

         * @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation
         *     would result in more than {@link Integer#MAX_VALUE} occurrences of the element
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> addCopies(E element, int occurrences) {
          super.addCopies(element, occurrences);
          return this;
        }
    
        /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 29.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ForwardingMultiset.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public int add(@ParametricNullness E element, int occurrences) {
        return delegate().add(element, occurrences);
      }
    
      @CanIgnoreReturnValue
      @Override
      public int remove(@Nullable Object element, int occurrences) {
        return delegate().remove(element, occurrences);
      }
    
      @Override
      public Set<E> elementSet() {
        return delegate().elementSet();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  9. cmd/erasure-healing-common.go

    	for _, etag := range etags {
    		if etag == "" {
    			continue
    		}
    		etagOccurrenceMap[etag]++
    	}
    
    	maxima = 0 // Counter for remembering max occurrence of elements.
    	latest := ""
    
    	// Find the common cardinality from previously collected
    	// occurrences of elements.
    	for etag, count := range etagOccurrenceMap {
    		if count < maxima {
    			continue
    		}
    
    		// We are at or above maxima
    		if count > maxima {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 12K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/AbstractMultiset.java

      @Override
      public int add(@ParametricNullness E element, int occurrences) {
        throw new UnsupportedOperationException();
      }
    
      @CanIgnoreReturnValue
      @Override
      public final boolean remove(@Nullable Object element) {
        return remove(element, 1) > 0;
      }
    
      @CanIgnoreReturnValue
      @Override
      public int remove(@Nullable Object element, int occurrences) {
        throw new UnsupportedOperationException();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 5.9K bytes
    - Click Count (0)
Back to Top