Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for LinkedHashMultiset (0.12 sec)

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

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

    @GwtCompatible(serializable = true, emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class LinkedHashMultiset<E extends @Nullable Object>
        extends AbstractMapBasedMultiset<E> {
    
      /** 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);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java

      @Param({"0", "1", "16", "256", "4096", "65536"})
      int size;
    
      LinkedHashMultiset<Object> linkedHashMultiset;
      HashMultiset<Object> hashMultiset;
    
      // TreeMultiset requires a Comparable element.
      TreeMultiset<Integer> treeMultiset;
    
      @BeforeExperiment
      void setUp() {
        hashMultiset = HashMultiset.create(size);
        linkedHashMultiset = LinkedHashMultiset.create(size);
        treeMultiset = TreeMultiset.create();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java

      @Param({"0", "1", "16", "256", "4096", "65536"})
      int size;
    
      LinkedHashMultiset<Object> linkedHashMultiset;
      HashMultiset<Object> hashMultiset;
    
      // TreeMultiset requires a Comparable element.
      TreeMultiset<Integer> treeMultiset;
    
      @BeforeExperiment
      void setUp() {
        hashMultiset = HashMultiset.create(size);
        linkedHashMultiset = LinkedHashMultiset.create(size);
        treeMultiset = TreeMultiset.create();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

        return new TestStringMultisetGenerator() {
          @Override
          protected Multiset<String> create(String[] elements) {
            Multiset<String> multiset1 = LinkedHashMultiset.create();
            Multiset<String> multiset2 = LinkedHashMultiset.create();
            for (int i = 0; i < elements.length; i++) {
              String element = elements[i];
              if (multiset1.contains(element) || multiset2.contains(element)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

        return new TestStringMultisetGenerator() {
          @Override
          protected Multiset<String> create(String[] elements) {
            Multiset<String> multiset1 = LinkedHashMultiset.create();
            Multiset<String> multiset2 = LinkedHashMultiset.create();
            for (int i = 0; i < elements.length; i++) {
              String element = elements[i];
              if (multiset1.contains(element) || multiset2.contains(element)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

      public void testCreate() {
        Multiset<String> multiset = LinkedHashMultiset.create();
        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
      public void testCreateWithSize() {
        Multiset<String> multiset = LinkedHashMultiset.create(50);
        multiset.add("foo", 2);
        multiset.add("bar");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

      public void testCreate() {
        Multiset<String> multiset = LinkedHashMultiset.create();
        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
      public void testCreateWithSize() {
        Multiset<String> multiset = LinkedHashMultiset.create(50);
        multiset.add("foo", 2);
        multiset.add("bar");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/HashMultisetTest.java

        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next().member);
      }
    
      /*
       * The behavior of toString() and iteration is tested by LinkedHashMultiset,
       * which shares a lot of code with HashMultiset and has deterministic
       * iteration order.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/HashMultisetTest.java

        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next().member);
      }
    
      /*
       * The behavior of toString() and iteration is tested by LinkedHashMultiset,
       * which shares a lot of code with HashMultiset and has deterministic
       * iteration order.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top