| /external/guava/android/guava-tests/test/com/google/common/collect/ |
| D | ImmutableSortedSetTest.java | 47 import java.util.SortedSet; 175 protected <E extends Comparable<? super E>> SortedSet<E> of() { in of() 180 protected <E extends Comparable<? super E>> SortedSet<E> of(E e) { in of() 185 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2) { in of() 190 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3) { in of() 195 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4) { in of() 200 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5) { in of() 206 protected <E extends Comparable<? super E>> SortedSet<E> of( in of() 212 protected <E extends Comparable<? super E>> SortedSet<E> copyOf(E[] elements) { in copyOf() 217 protected <E extends Comparable<? super E>> SortedSet<E> copyOf( in copyOf() [all …]
|
| D | ForwardingSortedSetTest.java | 30 import java.util.SortedSet; 42 private final SortedSet<T> backingSortedSet; 44 StandardImplForwardingSortedSet(SortedSet<T> backingSortedSet) { in StandardImplForwardingSortedSet() 49 protected SortedSet<T> delegate() { in delegate() 114 public SortedSet<T> subSet(T fromElement, T toElement) { in subSet() 127 protected SortedSet<String> create(String[] elements) { in suite() 151 SortedSet.class, in testForwarding() 152 new Function<SortedSet, SortedSet>() { in testForwarding() 154 public SortedSet apply(SortedSet delegate) { in testForwarding() 161 SortedSet<String> set1 = ImmutableSortedSet.of("one"); in testEquals() [all …]
|
| /external/guava/guava-tests/test/com/google/common/collect/ |
| D | ImmutableSortedSetTest.java | 49 import java.util.SortedSet; 179 protected <E extends Comparable<? super E>> SortedSet<E> of() { in of() 184 protected <E extends Comparable<? super E>> SortedSet<E> of(E e) { in of() 189 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2) { in of() 194 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3) { in of() 199 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4) { in of() 204 protected <E extends Comparable<? super E>> SortedSet<E> of(E e1, E e2, E e3, E e4, E e5) { in of() 210 protected <E extends Comparable<? super E>> SortedSet<E> of( in of() 216 protected <E extends Comparable<? super E>> SortedSet<E> copyOf(E[] elements) { in copyOf() 221 protected <E extends Comparable<? super E>> SortedSet<E> copyOf( in copyOf() [all …]
|
| D | ForwardingSortedSetTest.java | 30 import java.util.SortedSet; 42 private final SortedSet<T> backingSortedSet; 44 StandardImplForwardingSortedSet(SortedSet<T> backingSortedSet) { in StandardImplForwardingSortedSet() 49 protected SortedSet<T> delegate() { in delegate() 114 public SortedSet<T> subSet(T fromElement, T toElement) { in subSet() 127 protected SortedSet<String> create(String[] elements) { in suite() 151 SortedSet.class, in testForwarding() 152 new Function<SortedSet, SortedSet>() { in testForwarding() 154 public SortedSet apply(SortedSet delegate) { in testForwarding() 161 SortedSet<String> set1 = ImmutableSortedSet.of("one"); in testEquals() [all …]
|
| /external/google-smali/dexlib2/src/main/java/com/android/tools/smali/util/ |
| D | CollectionUtils.java | 41 import java.util.SortedSet; 139 if (it instanceof SortedSet) { 140 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it; 141 Comparator<?> comparator = sortedSet.comparator(); 149 if (it instanceof SortedSet) { 150 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it; 151 Comparator<?> comparator = sortedSet.comparator(); 161 …private static <T> SortedSet<? extends T> toNaturalSortedSet(@Nonnull Collection<? extends T> coll… 163 return (SortedSet<? extends T>)collection; 169 …private static <T> SortedSet<? extends T> toSortedSet(@Nonnull Comparator<? super T> elementCompar… [all …]
|
| /external/snakeyaml/src/test/java/examples/collections/ |
| D | TypeSafeSetImplementationsTest.java | 21 import java.util.SortedSet; 35 SortedSet<String> sortedSet = new TreeSet<String>(); in testDumpSet() local 36 sortedSet.add("two"); in testDumpSet() 37 sortedSet.add("one"); in testDumpSet() 38 sortedSet.add("three"); in testDumpSet() 39 bean.setSorted(sortedSet); in testDumpSet() 40 SortedSet<Developer> developers = new TreeSet<Developer>(); in testDumpSet() 53 SortedSet<String> sortedSet = new TreeSet<String>(); in testDumpSet2() local 54 sortedSet.add("two"); in testDumpSet2() 55 sortedSet.add("one"); in testDumpSet2() [all …]
|
| /external/smali/dexlib2/src/main/java/org/jf/util/ |
| D | CollectionUtils.java | 139 if (it instanceof SortedSet) { 140 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it; 141 Comparator<?> comparator = sortedSet.comparator(); 149 if (it instanceof SortedSet) { 150 SortedSet<? extends T> sortedSet = (SortedSet<? extends T>)it; 151 Comparator<?> comparator = sortedSet.comparator(); 161 …private static <T> SortedSet<? extends T> toNaturalSortedSet(@Nonnull Collection<? extends T> coll… 163 return (SortedSet<? extends T>)collection; 169 …private static <T> SortedSet<? extends T> toSortedSet(@Nonnull Comparator<? super T> elementCompar… 171 if (collection instanceof SortedSet) { [all …]
|
| /external/guava/android/guava/src/com/google/common/collect/ |
| D | AbstractSortedSetMultimap.java | 25 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 …]
|
| D | SortedSetMultimap.java | 26 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 …]
|
| D | ForwardingSortedSet.java | 26 import java.util.SortedSet; 60 implements SortedSet<E> { 66 protected abstract SortedSet<E> delegate(); in delegate() 81 public SortedSet<E> headSet(@ParametricNullness E toElement) { in headSet() 92 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { in subSet() 97 public SortedSet<E> tailSet(@ParametricNullness E fromElement) { in tailSet() 114 SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; in standardContains() 135 SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; in standardRemove() 158 protected SortedSet<E> standardSubSet( in standardSubSet()
|
| D | SortedIterables.java | 21 import java.util.SortedSet; 42 if (elements instanceof SortedSet) { in hasSameComparator() 43 comparator2 = comparator((SortedSet<?>) elements); in hasSameComparator() 53 // if sortedSet.comparator() is null, the set must be naturally ordered 55 SortedSet<E> sortedSet) { in comparator() argument 56 Comparator<? super E> result = sortedSet.comparator(); in comparator()
|
| /external/guava/guava/src/com/google/common/collect/ |
| D | AbstractSortedSetMultimap.java | 25 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 …]
|
| D | SortedSetMultimap.java | 26 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 …]
|
| D | ForwardingSortedSet.java | 26 import java.util.SortedSet; 60 implements SortedSet<E> { 66 protected abstract SortedSet<E> delegate(); in delegate() 81 public SortedSet<E> headSet(@ParametricNullness E toElement) { in headSet() 92 public SortedSet<E> subSet(@ParametricNullness E fromElement, @ParametricNullness E toElement) { in subSet() 97 public SortedSet<E> tailSet(@ParametricNullness E fromElement) { in tailSet() 114 SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; in standardContains() 135 SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this; in standardRemove() 158 protected SortedSet<E> standardSubSet( in standardSubSet()
|
| D | SortedIterables.java | 21 import java.util.SortedSet; 42 if (elements instanceof SortedSet) { in hasSameComparator() 43 comparator2 = comparator((SortedSet<?>) elements); in hasSameComparator() 53 // if sortedSet.comparator() is null, the set must be naturally ordered 55 SortedSet<E> sortedSet) { in comparator() argument 56 Comparator<? super E> result = sortedSet.comparator(); in comparator()
|
| /external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/ |
| D | SortedSetNavigationTester.java | 29 import java.util.SortedSet; 33 * A generic JUnit test which tests operations on a SortedSet. Can't be invoked directly; please see 43 private SortedSet<E> sortedSet; field in SortedSetNavigationTester 52 sortedSet = (SortedSet<E>) getSet(); in setUp() 57 Collections.sort(values, sortedSet.comparator()); in setUp() 72 sortedSet.first(); in testEmptySetFirst() 81 sortedSet.last(); in testEmptySetLast() 89 assertEquals(a, sortedSet.first()); in testSingletonSetFirst() 94 assertEquals(a, sortedSet.last()); in testSingletonSetLast() 99 assertEquals(a, sortedSet.first()); in testFirst() [all …]
|
| /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
| D | SortedSetNavigationTester.java | 29 import java.util.SortedSet; 33 * A generic JUnit test which tests operations on a SortedSet. Can't be invoked directly; please see 43 private SortedSet<E> sortedSet; field in SortedSetNavigationTester 52 sortedSet = (SortedSet<E>) getSet(); in setUp() 57 Collections.sort(values, sortedSet.comparator()); in setUp() 72 sortedSet.first(); in testEmptySetFirst() 81 sortedSet.last(); in testEmptySetLast() 89 assertEquals(a, sortedSet.first()); in testSingletonSetFirst() 94 assertEquals(a, sortedSet.last()); in testSingletonSetLast() 99 assertEquals(a, sortedSet.first()); in testFirst() [all …]
|
| /external/gson/gson/src/test/java/com/google/gson/functional/ |
| D | InheritanceTest.java | 38 import java.util.SortedSet; 169 SortedSet<Character> sortedSet = new TreeSet<>(); in testSubInterfacesOfCollectionSerialization() local 170 sortedSet.add('a'); in testSubInterfacesOfCollectionSerialization() 171 sortedSet.add('b'); in testSubInterfacesOfCollectionSerialization() 172 sortedSet.add('c'); in testSubInterfacesOfCollectionSerialization() 173 sortedSet.add('d'); in testSubInterfacesOfCollectionSerialization() 175 new ClassWithSubInterfacesOfCollection(list, queue, set, sortedSet); in testSubInterfacesOfCollectionSerialization() 181 + "\"sortedSet\":[\"a\",\"b\",\"c\",\"d\"]" in testSubInterfacesOfCollectionDeserialization() 195 private SortedSet<Character> sortedSet; field in InheritanceTest.ClassWithSubInterfacesOfCollection 198 SortedSet<Character> sortedSet) { in ClassWithSubInterfacesOfCollection() argument [all …]
|
| D | InstanceCreatorTest.java | 29 import java.util.SortedSet; 107 InstanceCreator<SortedSet<?>> sortedSetCreator = new InstanceCreator<SortedSet<?>>() { in testInstanceCreatorForParametrizedType() 108 @Override public SortedSet<?> createInstance(Type type) { in testInstanceCreatorForParametrizedType() 113 .registerTypeAdapter(SortedSet.class, sortedSetCreator) in testInstanceCreatorForParametrizedType() 116 Type sortedSetType = new TypeToken<SortedSet<String>>() {}.getType(); in testInstanceCreatorForParametrizedType() 117 SortedSet<String> set = gson.fromJson("[\"a\"]", sortedSetType); in testInstanceCreatorForParametrizedType() 121 set = gson.fromJson("[\"b\"]", SortedSet.class); in testInstanceCreatorForParametrizedType()
|
| /external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
| D | SetGenerators.java | 52 import java.util.SortedSet; 141 protected SortedSet<String> create(String[] elements) { in create() 148 protected SortedSet<String> create(String[] elements) { in create() 157 protected SortedSet<String> create(String[] elements) { in create() 166 protected SortedSet<String> create(String[] elements) { in create() 177 protected SortedSet<String> create(String[] elements) { in create() 187 protected SortedSet<String> create(String[] elements) { in create() 204 protected SortedSet<String> create(String[] elements) { in create() 218 protected SortedSet<String> create(String[] elements) { in create() 338 private static <E extends Comparable<? super E>> SortedSet<E> nullCheckedTreeSet(E[] elements) { in nullCheckedTreeSet() [all …]
|
| D | SortedSetMultimapAsMapTester.java | 25 import java.util.SortedSet; 41 SortedSet<V> valueSet = (SortedSet<V>) valueCollection; in testAsMapValuesImplementSortedSet() 48 SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key); in testAsMapGetImplementsSortedSet() 58 SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().remove(key); in testAsMapRemoveImplementsSortedSet()
|
| /external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/ |
| D | SetGenerators.java | 52 import java.util.SortedSet; 141 protected SortedSet<String> create(String[] elements) { in create() 148 protected SortedSet<String> create(String[] elements) { in create() 157 protected SortedSet<String> create(String[] elements) { in create() 166 protected SortedSet<String> create(String[] elements) { in create() 177 protected SortedSet<String> create(String[] elements) { in create() 187 protected SortedSet<String> create(String[] elements) { in create() 204 protected SortedSet<String> create(String[] elements) { in create() 218 protected SortedSet<String> create(String[] elements) { in create() 338 private static <E extends Comparable<? super E>> SortedSet<E> nullCheckedTreeSet(E[] elements) { in nullCheckedTreeSet() [all …]
|
| D | SortedSetMultimapAsMapTester.java | 25 import java.util.SortedSet; 41 SortedSet<V> valueSet = (SortedSet<V>) valueCollection; in testAsMapValuesImplementSortedSet() 48 SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key); in testAsMapGetImplementsSortedSet() 58 SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().remove(key); in testAsMapRemoveImplementsSortedSet()
|
| /external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/writer/builder/ |
| D | BuilderClassDef.java | 50 import java.util.SortedSet; 61 @Nonnull final SortedSet<BuilderField> staticFields; 62 @Nonnull final SortedSet<BuilderField> instanceFields; 63 @Nonnull final SortedSet<BuilderMethod> directMethods; 64 @Nonnull final SortedSet<BuilderMethod> virtualMethods; 76 @Nullable SortedSet<BuilderField> staticFields, in BuilderClassDef() 77 @Nullable SortedSet<BuilderField> instanceFields, in BuilderClassDef() 108 @Nonnull @Override public SortedSet<BuilderField> getStaticFields() { return staticFields; } in getStaticFields() 109 @Nonnull @Override public SortedSet<BuilderField> getInstanceFields() { return instanceFields; } in getInstanceFields() 110 @Nonnull @Override public SortedSet<BuilderMethod> getDirectMethods() { return directMethods; } in getDirectMethods() [all …]
|
| /external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/ |
| D | BuilderClassDef.java | 53 @Nonnull final SortedSet<BuilderField> staticFields; 54 @Nonnull final SortedSet<BuilderField> instanceFields; 55 @Nonnull final SortedSet<BuilderMethod> directMethods; 56 @Nonnull final SortedSet<BuilderMethod> virtualMethods; 68 @Nullable SortedSet<BuilderField> staticFields, in BuilderClassDef() 69 @Nullable SortedSet<BuilderField> instanceFields, in BuilderClassDef() 100 @Nonnull @Override public SortedSet<BuilderField> getStaticFields() { return staticFields; } in getStaticFields() 101 @Nonnull @Override public SortedSet<BuilderField> getInstanceFields() { return instanceFields; } in getInstanceFields() 102 @Nonnull @Override public SortedSet<BuilderMethod> getDirectMethods() { return directMethods; } in getDirectMethods() 103 … @Nonnull @Override public SortedSet<BuilderMethod> getVirtualMethods() { return virtualMethods; } in getVirtualMethods()
|