Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for distinctElements (0.38 sec)

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

       * elements.
       *
       * @param distinctElements the expected number of distinct elements
       * @throws IllegalArgumentException if {@code distinctElements} is negative
       */
      public static <E extends @Nullable Object> LinkedHashMultiset<E> create(int distinctElements) {
        return new LinkedHashMultiset<>(distinctElements);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TreeMultiset.java

            newTop.right = right;
            newTop.distinctElements = distinctElements - 1;
            newTop.totalCount = totalCount - oldElemCount;
            return newTop.rebalance();
          } else {
            AvlNode<E> newTop = succ();
            newTop.right = right.removeMin(newTop);
            newTop.left = left;
            newTop.distinctElements = distinctElements - 1;
            newTop.totalCount = totalCount - oldElemCount;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  3. android/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;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. 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);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  5. android/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);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  6. 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;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        implements Serializable {
    
      transient ObjectCountHashMap<E> backingMap;
      transient long size;
    
      AbstractMapBasedMultiset(int distinctElements) {
        backingMap = newBackingMap(distinctElements);
      }
    
      abstract ObjectCountHashMap<E> newBackingMap(int distinctElements);
    
      @Override
      public final int count(@CheckForNull Object element) {
        return backingMap.get(element);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  8. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/AbstractMultiset.java

          return entryIterator();
        }
    
        @Override
        public int size() {
          return distinctElements();
        }
      }
    
      Set<Entry<E>> createEntrySet() {
        return new EntrySet();
      }
    
      abstract Iterator<Entry<E>> entryIterator();
    
      abstract int distinctElements();
    
      // Object methods
    
      /**
       * {@inheritDoc}
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractMultiset.java

          return entryIterator();
        }
    
        @Override
        public int size() {
          return distinctElements();
        }
      }
    
      Set<Entry<E>> createEntrySet() {
        return new EntrySet();
      }
    
      abstract Iterator<Entry<E>> entryIterator();
    
      abstract int distinctElements();
    
      // Object methods
    
      /**
       * {@inheritDoc}
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 6K bytes
    - Viewed (0)
Back to top