Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for distinctElements (0.55 sec)

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

       * elements.
       *
       * @param distinctElements the expected number of distinct elements
       * @throws IllegalArgumentException if {@code distinctElements} is negative
       */
      public static <E extends @Nullable Object> HashMultiset<E> create(int distinctElements) {
        return new HashMultiset<>(distinctElements);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/EnumMultiset.java

        size += count - oldCount;
        if (oldCount == 0 && count > 0) {
          distinctElements++;
        } else if (oldCount > 0 && count == 0) {
          distinctElements--;
        }
        return oldCount;
      }
    
      @Override
      public void clear() {
        Arrays.fill(counts, 0);
        size = 0;
        distinctElements = 0;
      }
    
      abstract class Itr<T> implements Iterator<T> {
        int index = 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Serialization.java

       */
      static <E extends @Nullable Object> void populateMultiset(
          Multiset<E> multiset, ObjectInputStream stream) throws IOException, ClassNotFoundException {
        int distinctElements = stream.readInt();
        populateMultiset(multiset, stream, distinctElements);
      }
    
      /**
       * Populates a multiset by reading an input stream, as part of deserialization. See {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Serialization.java

       */
      static <E extends @Nullable Object> void populateMultiset(
          Multiset<E> multiset, ObjectInputStream stream) throws IOException, ClassNotFoundException {
        int distinctElements = stream.readInt();
        populateMultiset(multiset, stream, distinctElements);
      }
    
      /**
       * Populates a multiset by reading an input stream, as part of deserialization. See {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

                }
              };
            }
          };
        }
    
        @Override
        public Iterator<E> iterator() {
          return Multisets.iteratorImpl(this);
        }
    
        @Override
        int distinctElements() {
          return backingMap.size();
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top