Home
last modified time | relevance | path

Searched refs:SortedSet (Results 1 – 25 of 51) sorted by relevance

123

/libcore/ojluni/src/main/java/java/util/
DSortedSet.java108 public interface SortedSet<E> extends Set<E>, SequencedSet<E> { interface
151 SortedSet<E> subSet(E fromElement, E toElement); in subSet()
178 SortedSet<E> headSet(E toElement); in headSet()
205 SortedSet<E> tailSet(E fromElement); in tailSet()
260 return SortedSet.this.comparator(); in spliterator()
375 default SortedSet<E> reversed() {
DReverseOrderSortedSetView.java37 class ReverseOrderSortedSetView<E> implements SortedSet<E> {
38 final SortedSet<E> base;
41 private ReverseOrderSortedSetView(SortedSet<E> set) { in ReverseOrderSortedSetView()
46 public static <T> SortedSet<T> of(SortedSet<T> set) { in of()
192 public SortedSet<E> headSet(E to) { in headSet()
196 public SortedSet<E> subSet(E from, E to) { in subSet()
200 public SortedSet<E> tailSet(E from) { in tailSet()
206 static <T> Iterator<T> descendingIterator(SortedSet<T> set) { in descendingIterator()
208 SortedSet<T> root = set; in descendingIterator()
209 SortedSet<T> view = set; in descendingIterator()
[all …]
DNavigableSet.java90 public interface NavigableSet<E> extends SortedSet<E> {
300 SortedSet<E> subSet(E fromElement, E toElement); in subSet()
311 SortedSet<E> headSet(E toElement); in headSet()
322 SortedSet<E> tailSet(E fromElement); in tailSet()
DTreeSet.java174 public TreeSet(SortedSet<E> s) { in TreeSet()
305 c instanceof SortedSet && in addAll()
307 SortedSet<? extends E> set = (SortedSet<? extends E>) c; in addAll()
361 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet()
372 public SortedSet<E> headSet(E toElement) { in headSet()
383 public SortedSet<E> tailSet(E fromElement) { in tailSet()
/libcore/ojluni/annotations/flagged_api/java/util/
DSortedSet.annotated.java30 public interface SortedSet<E> extends java.util.Set<E>, java.util.SequencedSet<E> { interface
34 public java.util.SortedSet<E> subSet(E fromElement, E toElement); in subSet()
36 public java.util.SortedSet<E> headSet(E toElement); in headSet()
38 public java.util.SortedSet<E> tailSet(E fromElement); in tailSet()
60 public default java.util.SortedSet<E> reversed() { throw new RuntimeException("Stub!"); } in reversed()
DNavigableSet.annotated.java44 public interface NavigableSet<E> extends java.util.SortedSet<E> {
71 public java.util.SortedSet<E> subSet(E fromElement, E toElement); in subSet()
73 public java.util.SortedSet<E> headSet(E toElement); in headSet()
75 public java.util.SortedSet<E> tailSet(E fromElement); in tailSet()
DTreeSet.annotated.java38 public TreeSet(java.util.SortedSet<E> s) { throw new RuntimeException("Stub!"); } in TreeSet()
66 public java.util.SortedSet<E> subSet(E fromElement, E toElement) { throw new RuntimeException("Stub… in subSet()
68 public java.util.SortedSet<E> headSet(E toElement) { throw new RuntimeException("Stub!"); } in headSet()
70 public java.util.SortedSet<E> tailSet(E fromElement) { throw new RuntimeException("Stub!"); } in tailSet()
DCollections.annotated.java84 public static <T> java.util.SortedSet<T> unmodifiableSortedSet(java.util.SortedSet<T> s) { throw ne… in unmodifiableSortedSet()
103 public static <T> java.util.SortedSet<T> synchronizedSortedSet(java.util.SortedSet<T> s) { throw ne… in synchronizedSortedSet()
121 public static <E> java.util.SortedSet<E> checkedSortedSet(java.util.SortedSet<E> s, java.lang.Class… in checkedSortedSet()
141 public static <E> java.util.SortedSet<E> emptySortedSet() { throw new RuntimeException("Stub!"); } in emptySortedSet()
/libcore/luni/src/test/java/libcore/java/util/
DTreeSetTest.java22 import java.util.SortedSet;
61 final SortedSet<String> subSet = set.subSet("a", "c"); in testSubSetSerialization()
62 new SerializationTester<SortedSet<String>>(subSet, s) { in testSubSetSerialization()
63 @Override protected void verify(SortedSet<String> deserialized) { in testSubSetSerialization()
79 final SortedSet<String> subSet = set.subSet("a", false, "c", true); in testNavigableSubSetSerialization()
80 new SerializationTester<SortedSet<String>>(subSet, s) { in testNavigableSubSetSerialization()
81 @Override protected void verify(SortedSet<String> deserialized) { in testNavigableSubSetSerialization()
91 private void assertBounded(SortedSet<String> deserialized, boolean bounded) { in assertBounded()
DOldTreeSetTest.java26 import java.util.SortedSet;
65 new TreeSet((SortedSet)null); in test_ConstructorLjava_util_SortedSet()
142 SortedSet sort = ts.headSet(Integer.valueOf(100)); in test_headSetLjava_lang_Object()
184 SortedSet aSubSet = ts.subSet(objArray[startPos], objArray[endPos]); in test_subSetLjava_lang_ObjectLjava_lang_Object()
228 SortedSet sort = ts.tailSet(Integer.valueOf(101)); in test_tailSetLjava_lang_Object()
/libcore/ojluni/src/test/java/util/SequencedCollection/
DSimpleSortedSet.java32 public class SimpleSortedSet<E> implements SortedSet<E> {
34 final SortedSet<E> set;
126 public SortedSet<E> headSet(E toElement) { in headSet()
134 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet()
138 public SortedSet<E> tailSet(E fromElement) { in tailSet()
DBasic.java62 static SortedSet<String> cksorted(SortedSet<String> set) { in cksorted()
89 static SortedSet<String> usorted(SortedSet<String> set) { in usorted()
466 public void checkCheckedSortedSet(SortedSet<String> set) { in checkCheckedSortedSet()
467 SortedSet<Object> objSet = (SortedSet<Object>)(SortedSet)set; in checkCheckedSortedSet()
656 public void testCheckedSortedSet(String label, SortedSet<String> set, List<String> ref) { in testCheckedSortedSet()
/libcore/ojluni/src/test/java/util/Collections/
DWrappedNull.java40 import java.util.SortedSet;
98 SortedSet c = Collections.unmodifiableSortedSet(null); in main()
158 SortedSet c = Collections.synchronizedSortedSet(null); in main()
183 SortedSet ss = Collections.unmodifiableSortedSet(new TreeSet()); in main()
DEmptyNavigableSet.java46 import java.util.SortedSet;
103 public static final boolean isDescending(SortedSet<?> set) { in isDescending()
229 SortedSet ss = navigableSet.subSet(null, BigInteger.TEN); in testSubSet()
235 SortedSet ss = navigableSet.subSet(BigInteger.ZERO, null); in testSubSet()
241 SortedSet ss = navigableSet.subSet(null, null); in testSubSet()
250 SortedSet ss = navigableSet.subSet(obj1, BigInteger.TEN); in testSubSet()
256 SortedSet ss = navigableSet.subSet(BigInteger.ZERO, obj2); in testSubSet()
262 SortedSet ss = navigableSet.subSet(obj1, obj2); in testSubSet()
/libcore/tools/crypto/src/java/libcore/java/security/
DProviderOverlap.java24 import java.util.SortedSet;
38 SortedSet<String> overlap = new TreeSet<>(conscrypt); in main()
/libcore/support/src/test/java/tests/support/
DSupport_UnmodifiableCollectionTest.java23 import java.util.SortedSet;
73 SortedSet<Integer> ss = new TreeSet<Integer>(); in runTest()
/libcore/ojluni/src/test/java/util/PriorityQueue/
DAddNonComparable.java37 import java.util.SortedSet;
101 static <E> void test(SortedSet<E> set, Supplier<E> supplier, in test()
102 BiConsumer<? super SortedSet<E>, Throwable> checker) { in test()
DNoNulls.java46 import java.util.SortedSet;
64 final SortedSet<String> nullSortedSet in test()
/libcore/ojluni/src/test/java/util/Collection/
DCollectionDefaults.java37 import java.util.SortedSet;
160 if (set instanceof Set && !((set instanceof SortedSet) in testForEach()
169 if (set instanceof Set && !((set instanceof SortedSet) in testForEach()
193 if (set instanceof Set && !((set instanceof SortedSet) in testRemoveIf()
/libcore/ojluni/src/main/java/sun/util/locale/
DUnicodeLocaleExtension.java40 import java.util.SortedSet;
60 UnicodeLocaleExtension(SortedSet<String> attributes, SortedMap<String, String> keywords) { in UnicodeLocaleExtension()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DTreeSubSetTest.java40 import java.util.SortedSet;
526 SortedSet sm = set.subSet(two, four); in testSubSetContents()
557 SortedSet sm = set.subSet(two, three); in testSubSetContents2()
587 SortedSet sm = set.headSet(four); in testHeadSetContents()
613 SortedSet sm = set.tailSet(two); in testTailSetContents()
631 SortedSet ssm = sm.tailSet(four); in testTailSetContents()
1015 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents()
1046 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2()
1076 SortedSet sm = set.headSet(m4); in testDescendingHeadSetContents()
1102 SortedSet sm = set.tailSet(m2); in testDescendingTailSetContents()
[all …]
DConcurrentSkipListSubSetTest.java39 import java.util.SortedSet;
529 SortedSet sm = set.subSet(two, four); in testSubSetContents()
560 SortedSet sm = set.subSet(two, three); in testSubSetContents2()
590 SortedSet sm = set.headSet(four); in testHeadSetContents()
616 SortedSet sm = set.tailSet(two); in testTailSetContents()
634 SortedSet ssm = sm.tailSet(four); in testTailSetContents()
1028 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents()
1059 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2()
1089 SortedSet sm = set.headSet(m4); in testDescendingHeadSetContents()
1115 SortedSet sm = set.tailSet(m2); in testDescendingTailSetContents()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentSkipListSubSetTest.java13 import java.util.SortedSet;
506 SortedSet sm = set.subSet(two, four); in testSubSetContents()
537 SortedSet sm = set.subSet(two, three); in testSubSetContents2()
567 SortedSet sm = set.headSet(four); in testHeadSetContents()
593 SortedSet sm = set.tailSet(two); in testTailSetContents()
611 SortedSet ssm = sm.tailSet(four); in testTailSetContents()
1005 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents()
1036 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2()
1066 SortedSet sm = set.headSet(m4); in testDescendingHeadSetContents()
1092 SortedSet sm = set.tailSet(m2); in testDescendingTailSetContents()
[all …]
DTreeSubSetTest.java14 import java.util.SortedSet;
503 SortedSet sm = set.subSet(two, four); in testSubSetContents()
534 SortedSet sm = set.subSet(two, three); in testSubSetContents2()
564 SortedSet sm = set.headSet(four); in testHeadSetContents()
590 SortedSet sm = set.tailSet(two); in testTailSetContents()
608 SortedSet ssm = sm.tailSet(four); in testTailSetContents()
992 SortedSet sm = set.subSet(m2, m4); in testDescendingSubSetContents()
1023 SortedSet sm = set.subSet(m2, m3); in testDescendingSubSetContents2()
1053 SortedSet sm = set.headSet(m4); in testDescendingHeadSetContents()
1079 SortedSet sm = set.tailSet(m2); in testDescendingTailSetContents()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java161 public static <T> java.util.SortedSet<T> unmodifiableSortedSet(java.util.SortedSet<T> s) { in unmodifiableSortedSet()
206 public static <T> java.util.SortedSet<T> synchronizedSortedSet(java.util.SortedSet<T> s) { in synchronizedSortedSet()
255 public static <E> java.util.SortedSet<E> checkedSortedSet( in checkedSortedSet()
256 java.util.SortedSet<E> s, java.lang.Class<E> type) { in checkedSortedSet()
303 public static <E> java.util.SortedSet<E> emptySortedSet() { in emptySortedSet()
1356 implements java.util.SortedSet<E>, java.io.Serializable {
1358 CheckedSortedSet(java.util.SortedSet<E> s, java.lang.Class<E> type) { in CheckedSortedSet()
1375 public java.util.SortedSet<E> subSet(E fromElement, E toElement) { in subSet()
1379 public java.util.SortedSet<E> headSet(E toElement) { in headSet()
1383 public java.util.SortedSet<E> tailSet(E fromElement) { in tailSet()
[all …]

123