Home
last modified time | relevance | path

Searched full:sortedset (Results 1 – 25 of 1767) sorted by relevance

12345678910>>...71

/aosp_15_r20/external/guava/android/guava-tests/test/com/google/common/collect/
H A DImmutableSortedSetTest.java48 import java.util.SortedSet;
178 protected <E extends Comparable<? super E>> SortedSet<E> of() { in of()
183 protected <E extends Comparable<? super E>> SortedSet<E> of(E e) { in of()
188 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2) { in of()
193 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3) { in of()
198 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4) { in of()
203 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5) { in of()
208 protected <E extends Comparable<? super E>> SortedSet<E> of( in of()
214 protected <E extends Comparable<? super E>> SortedSet<E> copyOf(E[] elements) { in copyOf()
219 protected <E extends Comparable<? super E>> SortedSet<E> copyOf( in copyOf()
[all …]
H A DForwardingSortedSetTest.java30 import java.util.SortedSet;
43 private final SortedSet<T> backingSortedSet;
45 StandardImplForwardingSortedSet(SortedSet<T> backingSortedSet) { in StandardImplForwardingSortedSet()
50 protected SortedSet<T> delegate() { in delegate()
115 public SortedSet<T> subSet(T fromElement, T toElement) { in subSet()
128 protected SortedSet<String> create(String[] elements) { in suite()
152 SortedSet.class, in testForwarding()
153 new Function<SortedSet, SortedSet>() { in testForwarding()
155 public SortedSet apply(SortedSet delegate) { in testForwarding()
162 SortedSet<String> set1 = ImmutableSortedSet.of("one"); in testEquals()
[all …]
H A DTreeMultisetTest.java40 import java.util.SortedSet;
169 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSortedSetMethods()
189 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemove()
191 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove()
214 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemoveAll()
216 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll()
234 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRetainAll()
236 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRetainAll()
254 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetClear()
256 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetClear()
[all …]
/aosp_15_r20/external/guava/guava-tests/test/com/google/common/collect/
H A DImmutableSortedSetTest.java50 import java.util.SortedSet;
183 protected <E extends Comparable<? super E>> SortedSet<E> of() { in of()
188 protected <E extends Comparable<? super E>> SortedSet<E> of(E e) { in of()
193 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2) { in of()
198 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3) { in of()
203 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4) { in of()
208 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5) { in of()
213 protected <E extends Comparable<? super E>> SortedSet<E> of( in of()
219 protected <E extends Comparable<? super E>> SortedSet<E> copyOf(E[] elements) { in copyOf()
224 protected <E extends Comparable<? super E>> SortedSet<E> copyOf( in copyOf()
[all …]
H A DForwardingSortedSetTest.java30 import java.util.SortedSet;
43 private final SortedSet<T> backingSortedSet;
45 StandardImplForwardingSortedSet(SortedSet<T> backingSortedSet) { in StandardImplForwardingSortedSet()
50 protected SortedSet<T> delegate() { in delegate()
115 public SortedSet<T> subSet(T fromElement, T toElement) { in subSet()
128 protected SortedSet<String> create(String[] elements) { in suite()
152 SortedSet.class, in testForwarding()
153 new Function<SortedSet, SortedSet>() { in testForwarding()
155 public SortedSet apply(SortedSet delegate) { in testForwarding()
162 SortedSet<String> set1 = ImmutableSortedSet.of("one"); in testEquals()
[all …]
H A DTreeMultisetTest.java40 import java.util.SortedSet;
169 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSortedSetMethods()
189 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemove()
191 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove()
214 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemoveAll()
216 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll()
234 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRetainAll()
236 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRetainAll()
254 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetClear()
256 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetClear()
[all …]
/aosp_15_r20/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/util/
H A DCollectionUtils.java41 import java.util.SortedSet;
141 if (it instanceof SortedSet) {
142 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it;
143 Comparator<?> comparator = sortedSet.comparator();
151 if (it instanceof SortedSet) {
152 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it;
153 Comparator<?> comparator = sortedSet.comparator();
163 …private static <T> SortedSet<? extends T> toNaturalSortedSet(@Nonnull Collection<? extends T> coll…
165 return (SortedSet<? extends T>)collection;
167SortedSet<? extends T> sortedSet = ArraySortedSet.of(NaturalOrdering.INSTANCE, collection.toArray(…
[all …]
/aosp_15_r20/external/snakeyaml/src/test/java/examples/collections/
H A DTypeSafeSetImplementationsTest.java19 import java.util.SortedSet;
32 SortedSet<String> sortedSet = new TreeSet<String>(); in testDumpSet() local
33 sortedSet.add("two"); in testDumpSet()
34 sortedSet.add("one"); in testDumpSet()
35 sortedSet.add("three"); in testDumpSet()
36 bean.setSorted(sortedSet); in testDumpSet()
37 SortedSet<Developer> developers = new TreeSet<Developer>(); in testDumpSet()
50 SortedSet<String> sortedSet = new TreeSet<String>(); in testDumpSet2() local
51 sortedSet.add("two"); in testDumpSet2()
52 sortedSet.add("one"); in testDumpSet2()
[all …]
/aosp_15_r20/external/guava/android/guava/src/com/google/common/collect/
H A DAbstractSortedSetMultimap.java25 import java.util.SortedSet;
32 * #createCollection} method must return a {@code SortedSet}.
50 abstract SortedSet<V> createCollection(); in createCollection()
53 SortedSet<V> createUnmodifiableEmptyCollection() { in createUnmodifiableEmptyCollection()
58 <E extends @Nullable Object> SortedSet<E> unmodifiableCollectionSubclass( in unmodifiableCollectionSubclass()
63 return Collections.unmodifiableSortedSet((SortedSet<E>) collection); in unmodifiableCollectionSubclass()
72 return new WrappedSortedSet(key, (SortedSet<V>) collection, null); in wrapCollection()
85 * returns a {@link SortedSet}, instead of the {@link Collection} specified in the {@link
89 public SortedSet<V> get(@ParametricNullness K key) { in get()
90 return (SortedSet<V>) super.get(key); in get()
[all …]
H A DSortedSetMultimap.java26 import java.util.SortedSet;
32 * a {@link SortedSet}. It cannot hold duplicate key-value pairs; adding a key-value pair that's
37 * SortedSet} of values, while {@link Multimap#entries()} returns a {@link Set} of map entries.
39 * {@code SortedSet} values.
64 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the
68 SortedSet<V> get(@ParametricNullness K key); in get()
74 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the
79 SortedSet<V> removeAll(@CheckForNull Object key); in removeAll()
85 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the
92 SortedSet<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values); in replaceValues()
[all …]
H A DForwardingSortedSet.java25 import java.util.SortedSet;
59 implements SortedSet<E> {
65 protected abstract SortedSet<E> delegate(); in delegate()
80 public SortedSet<E> headSet(@ParametricNullness E toElement) { in headSet()
91 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { in subSet()
96 public SortedSet<E> tailSet(@ParametricNullness E fromElement) { in tailSet()
112 SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; in standardContains()
132 SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; in standardRemove()
154 protected SortedSet<E> standardSubSet( in standardSubSet()
/aosp_15_r20/external/guava/guava/src/com/google/common/collect/
H A DAbstractSortedSetMultimap.java25 import java.util.SortedSet;
32 * #createCollection} method must return a {@code SortedSet}.
50 abstract SortedSet<V> createCollection(); in createCollection()
53 SortedSet<V> createUnmodifiableEmptyCollection() { in createUnmodifiableEmptyCollection()
58 <E extends @Nullable Object> SortedSet<E> unmodifiableCollectionSubclass( in unmodifiableCollectionSubclass()
63 return Collections.unmodifiableSortedSet((SortedSet<E>) collection); in unmodifiableCollectionSubclass()
72 return new WrappedSortedSet(key, (SortedSet<V>) collection, null); in wrapCollection()
85 * returns a {@link SortedSet}, instead of the {@link Collection} specified in the {@link
89 public SortedSet<V> get(@ParametricNullness K key) { in get()
90 return (SortedSet<V>) super.get(key); in get()
[all …]
H A DSortedSetMultimap.java26 import java.util.SortedSet;
32 * a {@link SortedSet}. It cannot hold duplicate key-value pairs; adding a key-value pair that's
37 * SortedSet} of values, while {@link Multimap#entries()} returns a {@link Set} of map entries.
39 * {@code SortedSet} values.
64 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the
68 SortedSet<V> get(@ParametricNullness K key); in get()
74 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the
79 SortedSet<V> removeAll(@CheckForNull Object key); in removeAll()
85 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the
92 SortedSet<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values); in replaceValues()
[all …]
H A DForwardingSortedSet.java25 import java.util.SortedSet;
59 implements SortedSet<E> {
65 protected abstract SortedSet<E> delegate(); in delegate()
80 public SortedSet<E> headSet(@ParametricNullness E toElement) { in headSet()
91 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { in subSet()
96 public SortedSet<E> tailSet(@ParametricNullness E fromElement) { in tailSet()
112 SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; in standardContains()
132 SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; in standardRemove()
154 protected SortedSet<E> standardSubSet( in standardSubSet()
/aosp_15_r20/libcore/ojluni/src/main/java/java/util/
H A DReverseOrderSortedSetView.java35 * Provides a reversed-ordered view of a SortedSet. Not serializable.
37 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()
182 // ========== SortedSet ==========
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()
[all …]
H A DSortedSet.java68 * 4) A constructor with a single argument of type {@code SortedSet},
83 * SortedSet&lt;String&gt; sub = s.subSet(low, high+"\0");</pre>
89 * SortedSet&lt;String&gt; sub = s.subSet(low+"\0", high);</pre>
108 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()
363 * The implementation in this interface returns a reverse-ordered SortedSet
365 * to this SortedSet. Other operations on the view are implemented via calls to
[all …]
/aosp_15_r20/external/gson/gson/src/test/java/com/google/gson/functional/
H A DInheritanceTest.java40 import java.util.SortedSet;
184 SortedSet<Character> sortedSet = new TreeSet<>(); in testSubInterfacesOfCollectionSerialization() local
185 sortedSet.add('a'); in testSubInterfacesOfCollectionSerialization()
186 sortedSet.add('b'); in testSubInterfacesOfCollectionSerialization()
187 sortedSet.add('c'); in testSubInterfacesOfCollectionSerialization()
188 sortedSet.add('d'); in testSubInterfacesOfCollectionSerialization()
190 new ClassWithSubInterfacesOfCollection(list, queue, set, sortedSet); in testSubInterfacesOfCollectionSerialization()
197 + "\"sortedSet\":[\"a\",\"b\",\"c\",\"d\"]" in testSubInterfacesOfCollectionDeserialization()
211 private SortedSet<Character> sortedSet; field in InheritanceTest.ClassWithSubInterfacesOfCollection
214 SortedSet<Character> sortedSet) { in ClassWithSubInterfacesOfCollection() argument
[all …]
/aosp_15_r20/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DSetGenerators.java52 import java.util.SortedSet;
142 protected SortedSet<String> create(String[] elements) { in create()
149 protected SortedSet<String> create(String[] elements) { in create()
158 protected SortedSet<String> create(String[] elements) { in create()
167 protected SortedSet<String> create(String[] elements) { in create()
178 protected SortedSet<String> create(String[] elements) { in create()
188 protected SortedSet<String> create(String[] elements) { in create()
205 protected SortedSet<String> create(String[] elements) { in create()
219 protected SortedSet<String> create(String[] elements) { in create()
339 private static <E extends Comparable<? super E>> SortedSet<E> nullCheckedTreeSet(E[] elements) { in nullCheckedTreeSet()
[all …]
/aosp_15_r20/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
H A DSetGenerators.java52 import java.util.SortedSet;
142 protected SortedSet<String> create(String[] elements) { in create()
149 protected SortedSet<String> create(String[] elements) { in create()
158 protected SortedSet<String> create(String[] elements) { in create()
167 protected SortedSet<String> create(String[] elements) { in create()
178 protected SortedSet<String> create(String[] elements) { in create()
188 protected SortedSet<String> create(String[] elements) { in create()
205 protected SortedSet<String> create(String[] elements) { in create()
219 protected SortedSet<String> create(String[] elements) { in create()
339 private static <E extends Comparable<? super E>> SortedSet<E> nullCheckedTreeSet(E[] elements) { in nullCheckedTreeSet()
[all …]
/aosp_15_r20/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
H A DSortedSetNavigationTester.java29 import java.util.SortedSet;
34 * A generic JUnit test which tests operations on a SortedSet. Can't be invoked directly; please see
46 private SortedSet<E> sortedSet; field in SortedSetNavigationTester
55 sortedSet = (SortedSet<E>) getSet(); in setUp()
60 Collections.sort(values, sortedSet.comparator()); in setUp()
75 sortedSet.first(); in testEmptySetFirst()
84 sortedSet.last(); in testEmptySetLast()
92 assertEquals(a, sortedSet.first()); in testSingletonSetFirst()
97 assertEquals(a, sortedSet.last()); in testSingletonSetLast()
102 assertEquals(a, sortedSet.first()); in testFirst()
[all …]
/aosp_15_r20/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
H A DSortedSetNavigationTester.java29 import java.util.SortedSet;
34 * A generic JUnit test which tests operations on a SortedSet. Can't be invoked directly; please see
46 private SortedSet<E> sortedSet; field in SortedSetNavigationTester
55 sortedSet = (SortedSet<E>) getSet(); in setUp()
60 Collections.sort(values, sortedSet.comparator()); in setUp()
75 sortedSet.first(); in testEmptySetFirst()
84 sortedSet.last(); in testEmptySetLast()
92 assertEquals(a, sortedSet.first()); in testSingletonSetFirst()
97 assertEquals(a, sortedSet.last()); in testSingletonSetLast()
102 assertEquals(a, sortedSet.first()); in testFirst()
[all …]
/aosp_15_r20/external/connectedappssdk/processor/src/main/resources/parcelablewrappers/
H A DParcelableImmutableSortedSet.java34 private final ImmutableSortedSet<E> sortedSet; field in ParcelableImmutableSortedSet
42 Bundler bundler, BundlerType type, ImmutableSortedSet<E> sortedSet) { in of() argument
43 return new ParcelableImmutableSortedSet<E>(bundler, type, sortedSet); in of()
47 return sortedSet; in get()
51 Bundler bundler, BundlerType type, ImmutableSortedSet<E> sortedSet) { in ParcelableImmutableSortedSet() argument
57 this.sortedSet = sortedSet; in ParcelableImmutableSortedSet()
66 sortedSet = null; in ParcelableImmutableSortedSet()
82 sortedSet = sortedSetBuilder.build(); in ParcelableImmutableSortedSet()
89 if (sortedSet == null) { in writeToParcel()
94 dest.writeInt(sortedSet.size()); in writeToParcel()
[all …]
/aosp_15_r20/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableSortedSet.java29 import java.util.SortedSet;
42 implements SortedSet<E>, SortedIterable<E> {
126 SortedSet<E> delegate = new TreeSet<E>(comparator); in ofInternal()
177 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { in copyOfSorted() argument
178 Comparator<? super E> comparator = sortedSet.comparator(); in copyOfSorted()
182 return copyOfInternal(comparator, sortedSet.iterator()); in copyOfSorted()
211 SortedSet<E> delegate = new TreeSet<E>(comparator); in copyOfInternal()
221 if (elements instanceof SortedSet) { in hasSameComparator()
222 SortedSet<?> sortedSet = (SortedSet<?>) elements; in hasSameComparator() local
223 Comparator<?> comparator2 = sortedSet.comparator(); in hasSameComparator()
[all …]
/aosp_15_r20/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/writer/builder/
H A DBuilderClassDef.java48 import java.util.SortedSet;
60 @Nonnull final SortedSet<BuilderField> staticFields;
61 @Nonnull final SortedSet<BuilderField> instanceFields;
62 @Nonnull final SortedSet<BuilderMethod> directMethods;
63 @Nonnull final SortedSet<BuilderMethod> virtualMethods;
75 @Nullable SortedSet<BuilderField> staticFields, in BuilderClassDef()
76 @Nullable SortedSet<BuilderField> instanceFields, in BuilderClassDef()
109 @Nonnull @Override public SortedSet<BuilderField> getStaticFields() { return staticFields; } in getStaticFields()
110 @Nonnull @Override public SortedSet<BuilderField> getInstanceFields() { return instanceFields; } in getInstanceFields()
111 @Nonnull @Override public SortedSet<BuilderMethod> getDirectMethods() { return directMethods; } in getDirectMethods()
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/24/libcore/ojluni/src/main/java/java/util/
DSortedSet.java68 * 4) A constructor with a single argument of type {@code SortedSet},
83 * SortedSet&lt;String&gt; sub = s.subSet(low, high+"\0");</pre>
89 * SortedSet&lt;String&gt; sub = s.subSet(low+"\0", high);</pre>
108 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()
363 * The implementation in this interface returns a reverse-ordered SortedSet
365 * to this SortedSet. Other operations on the view are implemented via calls to
[all …]

12345678910>>...71