/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | TreeMultisetTest.java | 80 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSortedSetMethods() local 82 assertEquals("a", elementSet.first()); in testElementSetSortedSetMethods() 83 assertEquals("c", elementSet.last()); in testElementSetSortedSetMethods() 84 assertEquals(Ordering.natural(), elementSet.comparator()); in testElementSetSortedSetMethods() 86 assertThat(elementSet.headSet("b")).has().exactly("a").inOrder(); in testElementSetSortedSetMethods() 87 assertThat(elementSet.tailSet("b")).has().exactly("b", "c").inOrder(); in testElementSetSortedSetMethods() 88 assertThat(elementSet.subSet("a", "c")).has().exactly("a", "b").inOrder(); in testElementSetSortedSetMethods() 100 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemove() local 101 assertThat(elementSet).has().exactly("a", "b", "c", "d", "e", "f").inOrder(); in testElementSetSubsetRemove() 102 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove() [all …]
|
D | 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-testlib/src/com/google/common/collect/testing/google/ |
D | MultisetElementSetTester.java | 41 Set<E> elementSet = getMultiset().elementSet(); in testElementSetReflectsAddAbsent() local 42 assertFalse(elementSet.contains(samples.e3)); in testElementSetReflectsAddAbsent() 44 assertTrue(elementSet.contains(samples.e3)); in testElementSetReflectsAddAbsent() 50 Set<E> elementSet = getMultiset().elementSet(); in testElementSetReflectsRemove() local 51 assertTrue(elementSet.contains(samples.e0)); in testElementSetReflectsRemove() 53 assertFalse(elementSet.contains(samples.e0)); in testElementSetReflectsRemove() 59 Set<E> elementSet = getMultiset().elementSet(); in testElementSetRemovePropagatesToMultiset() local 60 assertTrue(elementSet.remove(samples.e0)); in testElementSetRemovePropagatesToMultiset() 68 Set<E> elementSet = getMultiset().elementSet(); in testElementSetRemoveDuplicatePropagatesToMultiset() local 69 assertTrue(elementSet.remove(samples.e0)); in testElementSetRemoveDuplicatePropagatesToMultiset() [all …]
|
D | MultisetEntrySetTester.java | 153 assertTrue(getMultiset().elementSet().remove(samples.e0)); in testEntryViewReflectsRemove() 220 getMultiset().elementSet().clear(); in testEntryReflectsElementSetClear() 232 Iterator<E> elementItr = getMultiset().elementSet().iterator(); in testEntryReflectsElementSetIteratorRemove() 248 assertTrue(getMultiset().elementSet().remove(samples.e0)); in testEntryReflectsRemoveThenAdd()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TreeMultisetTest.java | 101 return TreeMultiset.create(Arrays.asList(elements)).elementSet(); in suite() 160 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSortedSetMethods() local 162 assertEquals("a", elementSet.first()); in testElementSetSortedSetMethods() 163 assertEquals("c", elementSet.last()); in testElementSetSortedSetMethods() 164 assertEquals(Ordering.natural(), elementSet.comparator()); in testElementSetSortedSetMethods() 166 assertThat(elementSet.headSet("b")).has().exactly("a").inOrder(); in testElementSetSortedSetMethods() 167 assertThat(elementSet.tailSet("b")).has().exactly("b", "c").inOrder(); in testElementSetSortedSetMethods() 168 assertThat(elementSet.subSet("a", "c")).has().exactly("a", "b").inOrder(); in testElementSetSortedSetMethods() 180 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemove() local 181 assertThat(elementSet).has().exactly("a", "b", "c", "d", "e", "f").inOrder(); in testElementSetSubsetRemove() [all …]
|
D | 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();
|
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 | 77 return ImmutableMultiset.copyOf(elements).elementSet(); in suite() 119 ImmutableSet<String> elementSet = (ImmutableSet<String>) builder.build().elementSet(); in suite() 120 return elementSet.asList(); in suite() 462 LenientSerializableTester.reserializeAndAssertLenient(c.elementSet()); in testSerialization_elementSet()
|
/external/guava/guava/src/com/google/common/collect/ |
D | RegularImmutableSortedMultiset.java | 32 private final transient RegularImmutableSortedSet<E> elementSet; field in RegularImmutableSortedMultiset 39 RegularImmutableSortedSet<E> elementSet, in RegularImmutableSortedMultiset() argument 44 this.elementSet = elementSet; in RegularImmutableSortedMultiset() 54 elementSet.asList().get(index), in getEntry() 70 int index = elementSet.indexOf(element); in count() 81 public ImmutableSortedSet<E> elementSet() { in elementSet() method in RegularImmutableSortedMultiset 82 return elementSet; in elementSet() 87 return getSubMultiset(0, elementSet.headIndex(upperBound, checkNotNull(boundType) == CLOSED)); in headMultiset() 92 return getSubMultiset(elementSet.tailIndex(lowerBound, checkNotNull(boundType) == CLOSED), in tailMultiset() 104 (RegularImmutableSortedSet<E>) elementSet.getSubSet(from, to); in getSubMultiset()
|
D | Multisets.java | 109 transient Set<E> elementSet; field in Multisets.UnmodifiableMultiset 112 return Collections.<E>unmodifiableSet(delegate.elementSet()); in createElementSet() 116 public Set<E> elementSet() { in elementSet() method in Multisets.UnmodifiableMultiset 117 Set<E> es = elementSet; in elementSet() 118 return (es == null) ? elementSet = createElementSet() : es; in elementSet() 294 return Sets.filter(unfiltered.elementSet(), predicate); in createElementSet() 314 return elementSet().size(); in distinctElements() 347 elementSet().clear(); in clear() 359 return ((Multiset<?>) elements).elementSet().size(); 403 return Sets.union(multiset1.elementSet(), multiset2.elementSet()); [all …]
|
D | EmptyImmutableSortedMultiset.java | 31 private final ImmutableSortedSet<E> elementSet; field in EmptyImmutableSortedMultiset 34 this.elementSet = ImmutableSortedSet.emptySet(comparator); in EmptyImmutableSortedMultiset() 63 public ImmutableSortedSet<E> elementSet() { in elementSet() method in EmptyImmutableSortedMultiset 64 return elementSet; in elementSet()
|
D | DescendingMultiset.java | 48 private transient NavigableSet<E> elementSet; field in DescendingMultiset 50 @Override public NavigableSet<E> elementSet() { in elementSet() method in DescendingMultiset 51 NavigableSet<E> result = elementSet; in elementSet() 53 return elementSet = new SortedMultisets.NavigableElementSet<E>(this); 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 | UnmodifiableSortedMultiset.java | 51 return Sets.unmodifiableNavigableSet(delegate().elementSet()); in createElementSet() 55 public NavigableSet<E> elementSet() { in elementSet() method in UnmodifiableSortedMultiset 56 return (NavigableSet<E>) super.elementSet(); in elementSet()
|
D | DescendingImmutableSortedMultiset.java | 53 public ImmutableSortedSet<E> elementSet() { in elementSet() method in DescendingImmutableSortedMultiset 54 return forward.elementSet().descendingSet(); in elementSet()
|
D | SortedMultisets.java | 65 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); in subSet() 69 return multiset().headMultiset(toElement, OPEN).elementSet(); in headSet() 73 return multiset().tailMultiset(fromElement, CLOSED).elementSet(); in tailSet()
|
D | ImmutableSortedMultiset.java | 103 RegularImmutableSortedSet<E> elementSet = in of() local 107 return new RegularImmutableSortedMultiset<E>(elementSet, counts, cumulativeCounts, 0, 1); in of() 322 return elementSet().comparator(); in comparator() 326 public abstract ImmutableSortedSet<E> elementSet(); in elementSet() method in ImmutableSortedMultiset
|
D | ForwardingMultiset.java | 76 public Set<E> elementSet() { in elementSet() method in ForwardingMultiset 77 return delegate().elementSet(); in elementSet()
|
D | AbstractSortedMultiset.java | 51 public NavigableSet<E> elementSet() { in elementSet() method in AbstractSortedMultiset 52 return (NavigableSet<E>) super.elementSet(); in elementSet()
|
D | ForwardingSortedMultiset.java | 53 public NavigableSet<E> elementSet() { in elementSet() method in ForwardingSortedMultiset 54 return (NavigableSet<E>) super.elementSet(); in elementSet()
|
D | SortedMultisetBridge.java | 30 SortedSet<E> elementSet(); in elementSet() method
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | DescendingMultiset.java | 48 private transient SortedSet<E> elementSet; field in DescendingMultiset 50 @Override public SortedSet<E> elementSet() { in elementSet() method in DescendingMultiset 51 SortedSet<E> result = elementSet; in elementSet() 53 return elementSet = new SortedMultisets.ElementSet<E>(this); in elementSet()
|
D | SortedMultisets.java | 62 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); in subSet() 66 return multiset().headMultiset(toElement, OPEN).elementSet(); in headSet() 70 return multiset().tailMultiset(fromElement, CLOSED).elementSet(); in tailSet()
|
D | UnmodifiableSortedMultiset.java | 49 return Collections.unmodifiableSortedSet(delegate().elementSet()); in createElementSet() 53 public SortedSet<E> elementSet() { in elementSet() method in UnmodifiableSortedMultiset 54 return (SortedSet<E>) super.elementSet(); in elementSet()
|
D | AbstractSortedMultiset.java | 51 public SortedSet<E> elementSet() { in elementSet() method in AbstractSortedMultiset 52 return (SortedSet<E>) super.elementSet(); in elementSet()
|