Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for linearTimeSizeImpl (0.06 sec)

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

       * you override {@link #entrySet}, you may wish to override {@link #size} to forward to this
       * implementation.
       *
       * @since 7.0
       */
      protected int standardSize() {
        return Multisets.linearTimeSizeImpl(this);
      }
    
      /**
       * A sensible, albeit inefficient, definition of {@link #equals} in terms of {@code
       * entrySet().size()} and {@link #count}. If you override either of these methods, you may wish to
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Multisets.java

                    & (Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.IMMUTABLE)),
            multiset.size());
      }
    
      /** An implementation of {@link Multiset#size}. */
      static int linearTimeSizeImpl(Multiset<?> multiset) {
        long size = 0;
        for (Entry<?> entry : multiset.entrySet()) {
          size += entry.getCount();
        }
        return Ints.saturatedCast(size);
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multisets.java

          }
          totalCount--;
          canRemove = false;
        }
      }
    
      /** An implementation of {@link Multiset#size}. */
      static int linearTimeSizeImpl(Multiset<?> multiset) {
        long size = 0;
        for (Entry<?> entry : multiset.entrySet()) {
          size += entry.getCount();
        }
        return Ints.saturatedCast(size);
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingMultiset.java

       * you override {@link #entrySet}, you may wish to override {@link #size} to forward to this
       * implementation.
       *
       * @since 7.0
       */
      protected int standardSize() {
        return Multisets.linearTimeSizeImpl(this);
      }
    
      /**
       * A sensible, albeit inefficient, definition of {@link #equals} in terms of {@code
       * entrySet().size()} and {@link #count}. If you override either of these methods, you may wish to
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top