Home
last modified time | relevance | path

Searched refs:sortedMultiset (Results 1 – 4 of 4) sorted by relevance

/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetNavigationTester.java49 private SortedMultiset<E> sortedMultiset; field in MultisetNavigationTester
65 sortedMultiset = cast(getMultiset()); in setUp()
69 Collections.sort(entries, sortedMultiset.comparator()); in setUp()
73 a = Multisets.immutableEntry(entries.get(0), sortedMultiset.count(entries.get(0))); in setUp()
75 b = Multisets.immutableEntry(entries.get(1), sortedMultiset.count(entries.get(1))); in setUp()
76 c = Multisets.immutableEntry(entries.get(2), sortedMultiset.count(entries.get(2))); in setUp()
91 sortedMultiset = (SortedMultiset<E>) getMultiset(); in resetWithHole()
96 assertNull(sortedMultiset.firstEntry()); in testEmptyMultisetFirst()
98 sortedMultiset.elementSet().first(); in testEmptyMultisetFirst()
106 assertNull(sortedMultiset.pollFirstEntry()); in testEmptyMultisetPollFirst()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMultisetsTest.java232 ImmutableMultiset<String> sortedMultiset = in testHighestCountFirst() local
235 ASSERT.that(sortedMultiset.entrySet()).hasContentsInOrder( in testHighestCountFirst()
239 ASSERT.that(sortedMultiset).hasContentsInOrder( in testHighestCountFirst()
/external/guava/guava/src/com/google/common/collect/
DImmutableSortedMultiset.java269 public static <E> ImmutableSortedMultiset<E> copyOfSorted(SortedMultiset<E> sortedMultiset) { in copyOfSorted() argument
270 Comparator<? super E> comparator = sortedMultiset.comparator(); in copyOfSorted()
274 return copyOfInternal(comparator, sortedMultiset); in copyOfSorted()
DMultisets.java195 SortedMultiset<E> sortedMultiset) { in unmodifiableSortedMultiset() argument
196 return new UnmodifiableSortedMultiset<E>(checkNotNull(sortedMultiset)); in unmodifiableSortedMultiset()