/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
MultisetElementSetTester.java | 33 * Tests for {@code Multiset.elementSet()} not covered by the derived {@code SetTestSuiteBuilder}. 41 Set<E> elementSet = getMultiset().elementSet(); 42 assertFalse(elementSet.contains(samples.e3)); 44 assertTrue(elementSet.contains(samples.e3)); 50 Set<E> elementSet = getMultiset().elementSet(); 51 assertTrue(elementSet.contains(samples.e0)); 53 assertFalse(elementSet.contains(samples.e0)); 59 Set<E> elementSet = getMultiset().elementSet() [all...] |
MultisetSerializationTester.java | 44 Set<E> expected = getMultiset().elementSet();
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
TreeMultisetTest.java | 80 SortedSet<String> elementSet = ms.elementSet(); 82 assertEquals("a", elementSet.first()); 83 assertEquals("c", elementSet.last()); 84 assertEquals(Ordering.natural(), elementSet.comparator()); 86 assertThat(elementSet.headSet("b")).has().exactly("a").inOrder(); 87 assertThat(elementSet.tailSet("b")).has().exactly("b", "c").inOrder(); 88 assertThat(elementSet.subSet("a", "c")).has().exactly("a", "b").inOrder(); 100 SortedSet<String> elementSet = ms.elementSet(); [all...] |
LinkedHashMultisetTest.java | 100 assertThat(ms.elementSet()).has().exactly("a", "b", "c").inOrder(); 102 assertThat(ms.elementSet()).has().exactly("a", "b", "c").inOrder(); 104 assertThat(ms.elementSet()).has().exactly("a", "b", "c").inOrder(); 107 assertThat(ms.elementSet()).has().exactly("a", "c", "b").inOrder();
|
/external/guava/guava-tests/test/com/google/common/collect/ |
TreeMultisetTest.java | 101 return TreeMultiset.create(Arrays.asList(elements)).elementSet(); 109 .named("TreeMultiset[Ordering.natural].elementSet") 160 SortedSet<String> elementSet = ms.elementSet(); 162 assertEquals("a", elementSet.first()); 163 assertEquals("c", elementSet.last()); 164 assertEquals(Ordering.natural(), elementSet.comparator()); 166 assertThat(elementSet.headSet("b")).has().exactly("a").inOrder(); 167 assertThat(elementSet.tailSet("b")).has().exactly("b", "c").inOrder(); 168 assertThat(elementSet.subSet("a", "c")).has().exactly("a", "b").inOrder() [all...] |
LinkedHashMultisetTest.java | 124 assertThat(ms.elementSet()).has().exactly("a", "b", "c").inOrder(); 126 assertThat(ms.elementSet()).has().exactly("a", "b", "c").inOrder(); 128 assertThat(ms.elementSet()).has().exactly("a", "b", "c").inOrder(); 131 assertThat(ms.elementSet()).has().exactly("a", "c", "b").inOrder();
|
/external/guava/guava/src/com/google/common/collect/ |
SortedMultisetBridge.java | 23 * {@code elementSet()}, to ensure binary compatibility with older Guava versions 24 * that specified {@code elementSet()} to return {@code SortedSet}. 30 SortedSet<E> elementSet();
|
RegularImmutableSortedMultiset.java | 32 private final transient RegularImmutableSortedSet<E> elementSet; 39 RegularImmutableSortedSet<E> elementSet, 44 this.elementSet = elementSet; 54 elementSet.asList().get(index), 70 int index = elementSet.indexOf(element); 81 public ImmutableSortedSet<E> elementSet() { 82 return elementSet; 87 return getSubMultiset(0, elementSet.headIndex(upperBound, checkNotNull(boundType) == CLOSED)); 92 return getSubMultiset(elementSet.tailIndex(lowerBound, checkNotNull(boundType) == CLOSED) [all...] |
EmptyImmutableSortedMultiset.java | 31 private final ImmutableSortedSet<E> elementSet; 34 this.elementSet = ImmutableSortedSet.emptySet(comparator); 63 public ImmutableSortedSet<E> elementSet() { 64 return elementSet;
|
UnmodifiableSortedMultiset.java | 28 * elementSet() types in GWT and non-GWT). 51 return Sets.unmodifiableNavigableSet(delegate().elementSet()); 55 public NavigableSet<E> elementSet() { 56 return (NavigableSet<E>) super.elementSet();
|
DescendingMultiset.java | 48 private transient NavigableSet<E> elementSet; 50 @Override public NavigableSet<E> elementSet() { 51 NavigableSet<E> result = elementSet; 53 return elementSet = new SortedMultisets.NavigableElementSet<E>(this);
|
DescendingImmutableSortedMultiset.java | 53 public ImmutableSortedSet<E> elementSet() { 54 return forward.elementSet().descendingSet();
|
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 | 109 transient Set<E> elementSet; 112 return Collections.<E>unmodifiableSet(delegate.elementSet()); 116 public Set<E> elementSet() { 117 Set<E> es = elementSet; 118 return (es == null) ? elementSet = createElementSet() : es; 244 * {@code elementSet()}, do not support {@code remove()}. However, all other multiset methods 294 return Sets.filter(unfiltered.elementSet(), predicate); 314 return elementSet().size(); 347 elementSet().clear(); 359 return ((Multiset<?>) elements).elementSet().size() [all...] |
SortedMultisets.java | 46 * A skeleton implementation for {@link SortedMultiset#elementSet}. 48 static class ElementSet<E> extends Multisets.ElementSet<E> implements 52 ElementSet(SortedMultiset<E> multiset) { 65 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); 69 return multiset().headMultiset(toElement, OPEN).elementSet(); 73 return multiset().tailMultiset(fromElement, CLOSED).elementSet(); 86 * A skeleton navigable implementation for {@link SortedMultiset#elementSet}. 89 static class NavigableElementSet<E> extends ElementSet<E> implements NavigableSet<E> {
|
AbstractSortedMultiset.java | 32 * {@link #elementSet()}. Override those methods for better performance. 51 public NavigableSet<E> elementSet() { 52 return (NavigableSet<E>) super.elementSet();
|
Multiset.java | 51 * #elementSet} contains the distinct elements of the multiset "with duplicates 197 * elements in the multiset: {@code elementSet().size()}. 201 Set<E> elementSet(); 208 * {@link #elementSet}). The order of the elements in the element set is
|
RegularImmutableMultiset.java | 65 public ImmutableSet<E> elementSet() {
|
SortedMultiset.java | 32 * its {@code elementSet} or {@code entrySet} views. In all cases, 87 @Override NavigableSet<E> elementSet();
|
ForwardingMultiset.java | 76 public Set<E> elementSet() { 77 return delegate().elementSet(); 180 * removeAll} method of {@link #elementSet}. If you override {@link 181 * #elementSet}, you may wish to override {@link #removeAll} to forward to 193 * retainAll} method of {@link #elementSet}. If you override {@link 194 * #elementSet}, you may wish to override {@link #retainAll} to forward to 230 * A sensible implementation of {@link Multiset#elementSet} in terms of the 237 * ForwardingMultiset#elementSet} to forward to this implementation or a 243 protected class StandardElementSet extends Multisets.ElementSet<E> {
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
SortedMultisets.java | 43 * A skeleton implementation for {@link SortedMultiset#elementSet}. 45 static class ElementSet<E> extends Multisets.ElementSet<E> implements 49 ElementSet(SortedMultiset<E> multiset) { 62 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); 66 return multiset().headMultiset(toElement, OPEN).elementSet(); 70 return multiset().tailMultiset(fromElement, CLOSED).elementSet();
|
UnmodifiableSortedMultiset.java | 49 return Collections.unmodifiableSortedSet(delegate().elementSet()); 53 public SortedSet<E> elementSet() { 54 return (SortedSet<E>) super.elementSet();
|
DescendingMultiset.java | 48 private transient SortedSet<E> elementSet; 50 @Override public SortedSet<E> elementSet() { 51 SortedSet<E> result = elementSet; 53 return elementSet = new SortedMultisets.ElementSet<E>(this);
|
SortedMultiset.java | 25 * GWT emulation of {@code SortedMultiset}, with {@code elementSet} reduced 47 @Override SortedSet<E> elementSet();
|
AbstractSortedMultiset.java | 32 * {@link #elementSet()}. Override those methods for better performance. 51 public SortedSet<E> elementSet() { 52 return (SortedSet<E>) super.elementSet(); 57 return new SortedMultisets.ElementSet<E>(this);
|