HomeSort by relevance Sort by last modified time
    Searched refs:elementSet (Results 1 - 25 of 48) sorted by null

1 2

  /external/guava/guava-tests/test/com/google/common/collect/
TreeMultisetTest.java 117 targetSet = multiset.elementSet();
136 SortedSet<String> elementSet = ms.elementSet();
138 assertEquals("a", elementSet.first());
139 assertEquals("c", elementSet.last());
140 assertEquals(Ordering.natural(), elementSet.comparator());
142 ASSERT.that(elementSet.headSet("b")).hasContentsInOrder("a");
143 ASSERT.that(elementSet.tailSet("b")).hasContentsInOrder("b", "c");
144 ASSERT.that(elementSet.subSet("a", "c")).hasContentsInOrder("a", "b");
156 SortedSet<String> elementSet = ms.elementSet()
    [all...]
AbstractMultisetTest.java 316 assertTrue(ms.elementSet().containsAll(Collections.emptySet()));
322 assertFalse(ms.elementSet().containsAll(asList("a", "c")));
330 assertTrue(ms.elementSet().containsAll(asList("a", "c")));
335 assertFalse(ms.elementSet().removeAll(Collections.emptySet()));
342 assertTrue(ms.elementSet().removeAll(asList("a", "c")));
349 assertFalse(ms.elementSet().removeAll(asList("c", "d")));
356 assertTrue(ms.elementSet().removeAll(asList("a", "b")));
361 assertFalse(ms.elementSet().retainAll(asList("a")));
367 assertTrue(ms.elementSet().retainAll(Collections.emptySet()));
374 assertTrue(ms.elementSet().retainAll(asList("a", "c")))
    [all...]
LinkedHashMultisetTest.java 91 return multiset.elementSet().iterator();
109 ASSERT.that(ms.elementSet()).hasContentsInOrder("a", "b", "c");
111 ASSERT.that(ms.elementSet()).hasContentsInOrder("a", "b", "c");
113 ASSERT.that(ms.elementSet()).hasContentsInOrder("a", "b", "c");
116 ASSERT.that(ms.elementSet()).hasContentsInOrder("a", "c", "b");
MultisetsTest.java 60 assertEquals(set, multisetView.elementSet());
61 assertEquals(multisetView.elementSet(), set);
62 assertEquals(multiset.elementSet(), multisetView.elementSet());
63 assertEquals(multisetView.elementSet(), multiset.elementSet());
73 multisetView.elementSet().add("baz");
77 multisetView.elementSet().addAll(Collections.singleton("baz"));
83 assertEquals(set, multisetView.elementSet());
84 ASSERT.that(multisetView.elementSet()).hasContentsAnyOrder("foo", null)
    [all...]
ForwardingMultisetTest.java 119 @Override public Set<T> elementSet() {
172 * method not specifically authorized by the elementSet() or hashCode()
183 @Override public Set<String> elementSet() {
258 }.elementSet();
389 forward().elementSet();
390 assertEquals("[elementSet]", getCalls());
ImmutableMultisetTest.java 83 ImmutableMultiset.copyOf(elements).elementSet());
423 LenientSerializableTester.reserializeAndAssertLenient(c.elementSet());
ImmutableSortedMultisetTest.java 87 .elementSet());
417 Collection<String> copy = SerializableTester.reserializeAndAssert(c.elementSet());
  /external/guava/guava/src/com/google/common/collect/
SortedMultisets.java 40 * A skeleton implementation for {@link SortedMultiset#elementSet}.
42 static abstract class ElementSet<E> extends Multisets.ElementSet<E> implements
52 BoundType.OPEN).elementSet();
56 return multiset().headMultiset(toElement, BoundType.OPEN).elementSet();
61 .elementSet();
99 private transient SortedSet<E> elementSet;
101 @Override public SortedSet<E> elementSet() {
102 SortedSet<E> result = elementSet;
104 return elementSet = new SortedMultisets.ElementSet<E>()
    [all...]
EmptyImmutableMultiset.java 39 public ImmutableSet<Object> elementSet() {
AbstractMultiset.java 40 * the set returned by {@link #elementSet()}. Override those methods for better
134 private transient Set<E> elementSet;
137 public Set<E> elementSet() {
138 Set<E> result = elementSet;
140 elementSet = result = createElementSet();
147 * returned by {@link #elementSet()}.
150 return new ElementSet();
153 class ElementSet extends Multisets.ElementSet<E> {
Multisets.java 106 transient Set<E> elementSet;
109 return Collections.<E>unmodifiableSet(delegate.elementSet());
113 public Set<E> elementSet() {
114 Set<E> es = elementSet;
115 return (es == null) ? elementSet = createElementSet() : es;
217 return Collections.unmodifiableSortedSet(delegate().elementSet());
221 public SortedSet<E> elementSet() {
222 return (SortedSet<E>) super.elementSet();
371 transient Set<E> elementSet;
374 public Set<E> elementSet() {
    [all...]
AbstractSortedMultiset.java 30 * {@link #elementSet()}. Override those methods for better performance.
49 public SortedSet<E> elementSet() {
50 return (SortedSet<E>) super.elementSet();
55 return new SortedMultisets.ElementSet<E>() {
DescendingImmutableSortedMultiset.java 59 return forward.elementSet();
Multiset.java 51 * #elementSet} contains the distinct elements of the multiset "with duplicates
193 * elements in the multiset: {@code elementSet().size()}.
197 Set<E> elementSet();
204 * {@link #elementSet}). The order of the elements in the element set is
RegularImmutableMultiset.java 66 public ImmutableSet<E> elementSet() {
SortedMultiset.java 78 @Override SortedSet<E> elementSet();
ForwardingMultiset.java 76 public Set<E> elementSet() {
77 return delegate().elementSet();
184 * removeAll} method of {@link #elementSet}. If you override {@link
185 * #elementSet}, you may wish to override {@link #removeAll} to forward to
197 * retainAll} method of {@link #elementSet}. If you override {@link
198 * #elementSet}, you may wish to override {@link #retainAll} to forward to
235 * A sensible implementation of {@link Multiset#elementSet} in terms of the
242 * ForwardingMultiset#elementSet} to forward to this implementation or a
248 protected class StandardElementSet extends Multisets.ElementSet<E> {
ImmutableSortedMultiset.java 351 private transient ImmutableSortedSet<E> elementSet;
354 public ImmutableSortedSet<E> elementSet() {
355 ImmutableSortedSet<E> result = elementSet;
357 return elementSet = createElementSet();
Synchronized.java 416 transient Set<E> elementSet;
463 public Set<E> elementSet() {
465 if (elementSet == null) {
466 elementSet = typePreservingSet(delegate().elementSet(), mutex);
468 return elementSet;
LinkedListMultimap.java 682 return keyCount.elementSet().size();
776 public Set<K> elementSet() {
785 return keyCount.elementSet().size();
998 return keyCount.elementSet().size();
    [all...]
SortedIterables.java 83 elements = ((Multiset<E>) elements).elementSet();
  /external/guava/guava-testlib/src/com/google/common/collect/testing/google/
MultisetReadsTester.java 73 assertTrue("multiset.elementSet().contains(present) returned false",
74 getMultiset().elementSet().contains(samples.e0));
MultisetNavigationTester.java 98 sortedMultiset.elementSet().first();
121 assertNull(sortedMultiset.elementSet().last());
271 assertFalse(multiset.elementSet().remove(entry.getElement()));
543 assertEquals(expected.size(), subMultiset.elementSet().size());
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
Synchronized.java 403 transient Set<E> elementSet;
450 public Set<E> elementSet() {
452 if (elementSet == null) {
453 elementSet = typePreservingSet(delegate().elementSet(), mutex);
455 return elementSet;
LinkedListMultimap.java 678 return keyCount.elementSet().size();
772 public Set<K> elementSet() {
781 return keyCount.elementSet().size();
994 return keyCount.elementSet().size();

Completed in 1204 milliseconds

1 2