Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for AbstractMultiset (0.1 sec)

  1. guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@link AbstractMultiset}.
     *
     * @author Kevin Bourrillion
     * @author Louis Wasserman
     */
    @SuppressWarnings("serial") // No serialization is used in this test
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

     * writeObject} methods.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    abstract class AbstractMapBasedMultiset<E extends @Nullable Object> extends AbstractMultiset<E>
        implements Serializable {
      // TODO(lowasser): consider overhauling this back to Map<E, Integer>
      private transient Map<E, Count> backingMap;
    
      /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@link AbstractMultiset}.
     *
     * @author Kevin Bourrillion
     * @author Louis Wasserman
     */
    @SuppressWarnings("serial") // No serialization is used in this test
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

     * writeObject} methods.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    abstract class AbstractMapBasedMultiset<E extends @Nullable Object> extends AbstractMultiset<E>
        implements Serializable {
    
      transient ObjectCountHashMap<E> backingMap;
      transient long size;
    
      AbstractMapBasedMultiset(int distinctElements) {
        backingMap = newBackingMap(distinctElements);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

     *
     * @author Cliff L. Biffle
     * @author mike nonemacher
     * @since 2.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class ConcurrentHashMultiset<E> extends AbstractMultiset<E> implements Serializable {
    
      /*
       * The ConcurrentHashMultiset's atomic operations are implemented primarily in terms of
       * AtomicInteger's atomic operations, with some help from ConcurrentMap's atomic operations on
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

        }
      }
    
      /**
       * An {@link AbstractMultiset} with additional default implementations, some of them linear-time
       * implementations in terms of {@code elementSet} and {@code entrySet}.
       */
      private abstract static class ViewMultiset<E extends @Nullable Object>
          extends AbstractMultiset<E> {
        @Override
        public int size() {
          return linearTimeSizeImpl(this);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Multisets.java

        }
      }
    
      /**
       * An {@link AbstractMultiset} with additional default implementations, some of them linear-time
       * implementations in terms of {@code elementSet} and {@code entrySet}.
       */
      private abstract static class ViewMultiset<E extends @Nullable Object>
          extends AbstractMultiset<E> {
        @Override
        public int size() {
          return linearTimeSizeImpl(this);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/TreeMultiset.java

        successor(b, c);
      }
    
      /*
       * TODO(jlevy): Decide whether entrySet() should return entries with an equals() method that
       * calls the comparator to compare the two keys. If that change is made,
       * AbstractMultiset.equals() can simply check whether two multisets have equal entry sets.
       */
    
      /**
       * @serialData the comparator, the number of distinct elements, the first element, its count, the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeMultiset.java

        successor(b, c);
      }
    
      /*
       * TODO(jlevy): Decide whether entrySet() should return entries with an equals() method that
       * calls the comparator to compare the two keys. If that change is made,
       * AbstractMultiset.equals() can simply check whether two multisets have equal entry sets.
       */
    
      /**
       * @serialData the comparator, the number of distinct elements, the first element, its count, the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

          builder.put(keyFunction.apply(value), value);
        }
        return builder.build();
      }
    
      static class Keys<K extends @Nullable Object, V extends @Nullable Object>
          extends AbstractMultiset<K> {
        @Weak final Multimap<K, V> multimap;
    
        Keys(Multimap<K, V> multimap) {
          this.multimap = multimap;
        }
    
        @Override
        Iterator<Multiset.Entry<K>> entryIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
Back to top