Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for elementSet (0.12 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java

        Set<E> elementSet = getMultiset().elementSet();
        assertFalse(elementSet.contains(e3()));
        getMultiset().add(e3(), 4);
        assertTrue(elementSet.contains(e3()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testElementSetReflectsRemove() {
        Set<E> elementSet = getMultiset().elementSet();
        assertTrue(elementSet.contains(e0()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        ms.add("b", 2);
        SortedSet<String> elementSet = ms.elementSet();
    
        assertEquals("a", elementSet.first());
        assertEquals("c", elementSet.last());
        assertEquals(Ordering.natural(), elementSet.comparator());
    
        assertThat(elementSet.headSet("b")).containsExactly("a");
        assertThat(elementSet.tailSet("b")).containsExactly("b", "c").inOrder();
        assertThat(elementSet.subSet("a", "c")).containsExactly("a", "b").inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        ms.add("b", 2);
        SortedSet<String> elementSet = ms.elementSet();
    
        assertEquals("a", elementSet.first());
        assertEquals("c", elementSet.last());
        assertEquals(Ordering.natural(), elementSet.comparator());
    
        assertThat(elementSet.headSet("b")).containsExactly("a");
        assertThat(elementSet.tailSet("b")).containsExactly("b", "c").inOrder();
        assertThat(elementSet.subSet("a", "c")).containsExactly("a", "b").inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java

        Set<E> elementSet = getMultiset().elementSet();
        assertFalse(elementSet.contains(e3()));
        getMultiset().add(e3(), 4);
        assertTrue(elementSet.contains(e3()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testElementSetReflectsRemove() {
        Set<E> elementSet = getMultiset().elementSet();
        assertTrue(elementSet.contains(e0()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                          builder.addCopies(s, 2);
                        }
                        ImmutableSet<String> elementSet =
                            (ImmutableSet<String>) builder.build().elementSet();
                        return elementSet.asList();
                      }
                    })
                .named("ImmutableMultiset.elementSet.asList")
                .withFeatures(
                    CollectionSize.ANY,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

          return (Multiset<E>) delegate;
        }
    
        @LazyInit @CheckForNull transient Set<E> elementSet;
    
        Set<E> createElementSet() {
          return Collections.<E>unmodifiableSet(delegate.elementSet());
        }
    
        @Override
        public Set<E> elementSet() {
          Set<E> es = elementSet;
          return (es == null) ? elementSet = createElementSet() : es;
        }
    
    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

          return (Multiset<E>) delegate;
        }
    
        @LazyInit @CheckForNull transient Set<E> elementSet;
    
        Set<E> createElementSet() {
          return Collections.<E>unmodifiableSet(delegate.elementSet());
        }
    
        @Override
        public Set<E> elementSet() {
          Set<E> es = elementSet;
          return (es == null) ? elementSet = createElementSet() : es;
        }
    
    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-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

        ms.add("b", 2);
        ms.add("c");
        assertThat(ms.elementSet()).containsExactly("a", "b", "c").inOrder();
        ms.remove("b");
        assertThat(ms.elementSet()).containsExactly("a", "b", "c").inOrder();
        ms.add("b");
        assertThat(ms.elementSet()).containsExactly("a", "b", "c").inOrder();
        ms.remove("b", 2);
        ms.add("b");
        assertThat(ms.elementSet()).containsExactly("a", "c", "b").inOrder();
      }
    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. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        assertContainsAllOf(
            keys.entrySet(), Multisets.immutableEntry((K) null, 2), Multisets.immutableEntry(k1(), 1));
      }
    
      public void testKeysElementSet() {
        assertEquals(multimap().keySet(), multimap().keys().elementSet());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testKeysRemove() {
        int original = multimap().keys().remove(k0(), 1);
        assertEquals(max(original - 1, 0), multimap().get(k0()).size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java

        return delegate().comparator();
      }
    
      @Override
      NavigableSet<E> createElementSet() {
        return unmodifiableNavigableSet(delegate().elementSet());
      }
    
      @Override
      public NavigableSet<E> elementSet() {
        return (NavigableSet<E>) super.elementSet();
      }
    
      @LazyInit @CheckForNull private transient UnmodifiableSortedMultiset<E> descendingMultiset;
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top