/external/guava/guava-tests/test/com/google/common/collect/ |
D | TreeMultisetTest.java | 117 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 …]
|
D | AbstractMultisetTest.java | 316 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 …]
|
D | MultisetsTest.java | 60 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()
|
D | LinkedHashMultisetTest.java | 91 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()
|
D | ForwardingMultisetTest.java | 119 @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()
|
D | ImmutableMultisetTest.java | 83 ImmutableMultiset.copyOf(elements).elementSet()); in suite() 423 LenientSerializableTester.reserializeAndAssertLenient(c.elementSet()); in testSerialization_elementSet()
|
D | ImmutableSortedMultisetTest.java | 87 .elementSet()); in suite() 417 Collection<String> copy = SerializableTester.reserializeAndAssert(c.elementSet()); in testSerialization_elementSet()
|
/external/guava/guava/src/com/google/common/collect/ |
D | Multisets.java | 106 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 …]
|
D | SortedMultisets.java | 52 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()
|
D | AbstractMultiset.java | 134 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()
|
D | AbstractSortedMultiset.java | 49 public SortedSet<E> elementSet() { in elementSet() method in AbstractSortedMultiset 50 return (SortedSet<E>) super.elementSet(); in elementSet()
|
D | ForwardingMultiset.java | 76 public Set<E> elementSet() { in elementSet() method in ForwardingMultiset 77 return delegate().elementSet(); in elementSet()
|
D | ImmutableSortedMultiset.java | 351 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()
|
D | EmptyImmutableMultiset.java | 39 public ImmutableSet<Object> elementSet() { in elementSet() method in EmptyImmutableMultiset
|
D | SortedMultiset.java | 78 @Override SortedSet<E> elementSet(); in elementSet() method
|
D | DescendingImmutableSortedMultiset.java | 59 return forward.elementSet(); in createDescendingElementSet()
|
D | Multiset.java | 197 Set<E> elementSet(); in elementSet() method
|
D | RegularImmutableMultiset.java | 66 public ImmutableSet<E> elementSet() { in elementSet() method in RegularImmutableMultiset
|
D | Synchronized.java | 416 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()
|
D | LinkedListMultimap.java | 682 return keyCount.elementSet().size(); 776 public Set<K> elementSet() { 785 return keyCount.elementSet().size(); 998 return keyCount.elementSet().size();
|
D | SortedIterables.java | 83 elements = ((Multiset<E>) elements).elementSet(); in sortedUnique()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Synchronized.java | 403 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()
|
D | LinkedListMultimap.java | 678 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/ |
D | MultisetReadsTester.java | 74 getMultiset().elementSet().contains(samples.e0)); in testElementSet_contains()
|
D | MultisetNavigationTester.java | 98 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()
|