Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ObjectCountHashMap (0.23 sec)

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

      /** Creates a new, empty {@code LinkedHashMultiset} using the default initial capacity. */
      public static <E extends @Nullable Object> LinkedHashMultiset<E> create() {
        return create(ObjectCountHashMap.DEFAULT_SIZE);
      }
    
      /**
       * Creates a new, empty {@code LinkedHashMultiset} with the specified expected number of distinct
       * elements.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableMultiset.java

      static final RegularImmutableMultiset<Object> EMPTY =
          new RegularImmutableMultiset<>(ObjectCountHashMap.create());
    
      final transient ObjectCountHashMap<E> contents;
      private final transient int size;
    
      @LazyInit @CheckForNull private transient ImmutableSet<E> elementSet;
    
      RegularImmutableMultiset(ObjectCountHashMap<E> contents) {
        this.contents = contents;
        long size = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Collections2.java

            return false;
          }
        }
        return true;
      }
    
      private static <E extends @Nullable Object> ObjectCountHashMap<E> counts(
          Collection<E> collection) {
        ObjectCountHashMap<E> map = new ObjectCountHashMap<>();
        for (E e : collection) {
          map.put(e, map.get(e) + 1);
        }
        return map;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
Back to top