Home
last modified time | relevance | path

Searched refs:elementSet (Results 1 – 25 of 32) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/collect/
DTreeMultisetTest.java117 targetSet = multiset.elementSet(); in testElementSetIteratorBashing()
136 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSortedSetMethods() local
138 assertEquals("a", elementSet.first()); in testElementSetSortedSetMethods()
139 assertEquals("c", elementSet.last()); in testElementSetSortedSetMethods()
140 assertEquals(Ordering.natural(), elementSet.comparator()); in testElementSetSortedSetMethods()
142 ASSERT.that(elementSet.headSet("b")).hasContentsInOrder("a"); in testElementSetSortedSetMethods()
143 ASSERT.that(elementSet.tailSet("b")).hasContentsInOrder("b", "c"); in testElementSetSortedSetMethods()
144 ASSERT.that(elementSet.subSet("a", "c")).hasContentsInOrder("a", "b"); in testElementSetSortedSetMethods()
156 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemove() local
157 ASSERT.that(elementSet).hasContentsInOrder("a", "b", "c", "d", "e", "f"); in testElementSetSubsetRemove()
[all …]
DAbstractMultisetTest.java316 assertTrue(ms.elementSet().containsAll(Collections.emptySet())); in testContainsAllVacuousViaElementSet()
322 assertFalse(ms.elementSet().containsAll(asList("a", "c"))); in testContainsAllNoViaElementSet()
330 assertTrue(ms.elementSet().containsAll(asList("a", "c"))); in testContainsAllYesViaElementSet()
335 assertFalse(ms.elementSet().removeAll(Collections.emptySet())); in testRemoveAllVacuousViaElementSet()
342 assertTrue(ms.elementSet().removeAll(asList("a", "c"))); in testRemoveAllOfOneViaElementSet()
349 assertFalse(ms.elementSet().removeAll(asList("c", "d"))); in testRemoveAllOfDisjointViaElementSet()
356 assertTrue(ms.elementSet().removeAll(asList("a", "b"))); in testRemoveAllOfEverythingViaElementSet()
361 assertFalse(ms.elementSet().retainAll(asList("a"))); in testRetainAllVacuousViaElementSet()
367 assertTrue(ms.elementSet().retainAll(Collections.emptySet())); in testRetainAllOfNothingViaElementSet()
374 assertTrue(ms.elementSet().retainAll(asList("a", "c"))); in testRetainAllOfOneViaElementSet()
[all …]
DMultisetsTest.java60 assertEquals(set, multisetView.elementSet()); in testForSet()
61 assertEquals(multisetView.elementSet(), set); in testForSet()
62 assertEquals(multiset.elementSet(), multisetView.elementSet()); in testForSet()
63 assertEquals(multisetView.elementSet(), multiset.elementSet()); in testForSet()
73 multisetView.elementSet().add("baz"); in testForSet()
77 multisetView.elementSet().addAll(Collections.singleton("baz")); in testForSet()
83 assertEquals(set, multisetView.elementSet()); in testForSet()
84 ASSERT.that(multisetView.elementSet()).hasContentsAnyOrder("foo", null); in testForSet()
DLinkedHashMultisetTest.java91 return multiset.elementSet().iterator(); in testElementSetIteratorBashing()
109 ASSERT.that(ms.elementSet()).hasContentsInOrder("a", "b", "c"); in testLosesPlaceInLine()
111 ASSERT.that(ms.elementSet()).hasContentsInOrder("a", "b", "c"); in testLosesPlaceInLine()
113 ASSERT.that(ms.elementSet()).hasContentsInOrder("a", "b", "c"); in testLosesPlaceInLine()
116 ASSERT.that(ms.elementSet()).hasContentsInOrder("a", "c", "b"); in testLosesPlaceInLine()
DForwardingMultisetTest.java119 @Override public Set<T> elementSet() { in elementSet() method in ForwardingMultisetTest.StandardImplForwardingMultiset
183 @Override public Set<String> elementSet() { in suite()
258 }.elementSet(); in suite()
389 forward().elementSet(); in testElementSet()
DImmutableMultisetTest.java83 ImmutableMultiset.copyOf(elements).elementSet()); in suite()
423 LenientSerializableTester.reserializeAndAssertLenient(c.elementSet()); in testSerialization_elementSet()
DImmutableSortedMultisetTest.java87 .elementSet()); in suite()
417 Collection<String> copy = SerializableTester.reserializeAndAssert(c.elementSet()); in testSerialization_elementSet()
/external/guava/guava/src/com/google/common/collect/
DMultisets.java106 transient Set<E> elementSet; field in Multisets.UnmodifiableMultiset
109 return Collections.<E>unmodifiableSet(delegate.elementSet()); in createElementSet()
113 public Set<E> elementSet() { in elementSet() method in Multisets.UnmodifiableMultiset
114 Set<E> es = elementSet; in elementSet()
115 return (es == null) ? elementSet = createElementSet() : es; in elementSet()
217 return Collections.unmodifiableSortedSet(delegate().elementSet()); in createElementSet()
221 public SortedSet<E> elementSet() { in elementSet() method in Multisets.UnmodifiableSortedMultiset
222 return (SortedSet<E>) super.elementSet(); in elementSet()
371 transient Set<E> elementSet; field in Multisets.SetMultiset
374 public Set<E> elementSet() { in elementSet() method in Multisets.SetMultiset
[all …]
DSortedMultisets.java52 BoundType.OPEN).elementSet(); in subSet()
56 return multiset().headMultiset(toElement, BoundType.OPEN).elementSet(); in headSet()
61 .elementSet(); in tailSet()
99 private transient SortedSet<E> elementSet; field in SortedMultisets.DescendingMultiset
101 @Override public SortedSet<E> elementSet() { in elementSet() method in SortedMultisets.DescendingMultiset
102 SortedSet<E> result = elementSet; in elementSet()
104 return elementSet = new SortedMultisets.ElementSet<E>() { in elementSet()
DAbstractMultiset.java134 private transient Set<E> elementSet; field in AbstractMultiset
137 public Set<E> elementSet() { in elementSet() method in AbstractMultiset
138 Set<E> result = elementSet; in elementSet()
140 elementSet = result = createElementSet(); in elementSet()
DAbstractSortedMultiset.java49 public SortedSet<E> elementSet() { in elementSet() method in AbstractSortedMultiset
50 return (SortedSet<E>) super.elementSet(); in elementSet()
DForwardingMultiset.java76 public Set<E> elementSet() { in elementSet() method in ForwardingMultiset
77 return delegate().elementSet(); in elementSet()
DImmutableSortedMultiset.java351 private transient ImmutableSortedSet<E> elementSet; field in ImmutableSortedMultiset
354 public ImmutableSortedSet<E> elementSet() { in elementSet() method in ImmutableSortedMultiset
355 ImmutableSortedSet<E> result = elementSet; in elementSet()
357 return elementSet = createElementSet(); in elementSet()
DEmptyImmutableMultiset.java39 public ImmutableSet<Object> elementSet() { in elementSet() method in EmptyImmutableMultiset
DSortedMultiset.java78 @Override SortedSet<E> elementSet(); in elementSet() method
DDescendingImmutableSortedMultiset.java59 return forward.elementSet(); in createDescendingElementSet()
DMultiset.java197 Set<E> elementSet(); in elementSet() method
DRegularImmutableMultiset.java66 public ImmutableSet<E> elementSet() { in elementSet() method in RegularImmutableMultiset
DSynchronized.java416 transient Set<E> elementSet; field in Synchronized.SynchronizedMultiset
463 public Set<E> elementSet() { in elementSet() method in Synchronized.SynchronizedMultiset
465 if (elementSet == null) { in elementSet()
466 elementSet = typePreservingSet(delegate().elementSet(), mutex); in elementSet()
468 return elementSet; in elementSet()
DLinkedListMultimap.java682 return keyCount.elementSet().size();
776 public Set<K> elementSet() {
785 return keyCount.elementSet().size();
998 return keyCount.elementSet().size();
DSortedIterables.java83 elements = ((Multiset<E>) elements).elementSet(); in sortedUnique()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DSynchronized.java403 transient Set<E> elementSet; field in Synchronized.SynchronizedMultiset
450 public Set<E> elementSet() { in elementSet() method in Synchronized.SynchronizedMultiset
452 if (elementSet == null) { in elementSet()
453 elementSet = typePreservingSet(delegate().elementSet(), mutex); in elementSet()
455 return elementSet; in elementSet()
DLinkedListMultimap.java678 return keyCount.elementSet().size();
772 public Set<K> elementSet() {
781 return keyCount.elementSet().size();
994 return keyCount.elementSet().size();
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetReadsTester.java74 getMultiset().elementSet().contains(samples.e0)); in testElementSet_contains()
DMultisetNavigationTester.java98 sortedMultiset.elementSet().first(); in testEmptyMultisetFirst()
121 assertNull(sortedMultiset.elementSet().last()); in testEmptyMultisetLast()
271 assertFalse(multiset.elementSet().remove(entry.getElement())); in expectRemoveZero()
543 assertEquals(expected.size(), subMultiset.elementSet().size()); in testSubMultisetDistinctElements()

12