/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/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 …]
|
D | ImmutableConverter.java | 42 import java.util.SortedSet; 145 … public SortedSet<ImmutableItem> toSortedSet(@Nonnull Comparator<? super ImmutableItem> comparator, 146 … @Nullable final SortedSet<? extends Item> sortedSet) { 147 if (sortedSet == null || sortedSet.size() == 0) { 152 ImmutableItem[] newItems = (ImmutableItem[])new Object[sortedSet.size()]; 154 for (Item item: sortedSet) {
|
/external/guava/guava/src/com/google/common/collect/ |
D | AbstractSortedSetMultimap.java | 25 import java.util.SortedSet; 31 * #createCollection} method must return a {@code SortedSet}. 48 abstract SortedSet<V> createCollection(); in createCollection() 51 SortedSet<V> createUnmodifiableEmptyCollection() { in createUnmodifiableEmptyCollection() 56 <E> SortedSet<E> unmodifiableCollectionSubclass(Collection<E> collection) { in unmodifiableCollectionSubclass() 60 return Collections.unmodifiableSortedSet((SortedSet<E>) collection); in unmodifiableCollectionSubclass() 69 return new WrappedSortedSet(key, (SortedSet<V>) collection, null); in wrapCollection() 82 * returns a {@link SortedSet}, instead of the {@link Collection} specified in the {@link 86 public SortedSet<V> get(@Nullable K key) { in get() 87 return (SortedSet<V>) super.get(key); in get() [all …]
|
D | SortedSetMultimap.java | 26 import java.util.SortedSet; 31 * a {@link SortedSet}. It cannot hold duplicate key-value pairs; adding a key-value pair that's 36 * SortedSet} of values, while {@link Multimap#entries()} returns a {@link Set} of map entries. 38 * {@code SortedSet} values. 58 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the 62 SortedSet<V> get(@Nullable K key); in get() 68 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the 73 SortedSet<V> removeAll(@Nullable Object key); in removeAll() 79 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the 86 SortedSet<V> replaceValues(K key, Iterable<? extends V> values); in replaceValues() [all …]
|
D | ForwardingSortedSet.java | 24 import java.util.SortedSet; 55 public abstract class ForwardingSortedSet<E> extends ForwardingSet<E> implements SortedSet<E> { 61 protected abstract SortedSet<E> delegate(); in delegate() 74 public SortedSet<E> headSet(E toElement) { in headSet() 84 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() 89 public SortedSet<E> tailSet(E fromElement) { in tailSet() 115 SortedSet<Object> self = (SortedSet<Object>) this; in standardContains() 136 SortedSet<Object> self = (SortedSet<Object>) this; in standardRemove() 159 protected SortedSet<E> standardSubSet(E fromElement, E toElement) { in standardSubSet()
|
D | SortedIterables.java | 21 import java.util.SortedSet; 40 if (elements instanceof SortedSet) { in hasSameComparator() 41 comparator2 = comparator((SortedSet<?>) elements); in hasSameComparator() 51 // if sortedSet.comparator() is null, the set must be naturally ordered 52 public static <E> Comparator<? super E> comparator(SortedSet<E> sortedSet) { in comparator() argument 53 Comparator<? super E> result = sortedSet.comparator(); in comparator()
|
D | StandardRowSortedTable.java | 28 import java.util.SortedSet; 36 * <p>The {@link #rowKeySet} method returns a {@link SortedSet} and the {@link #rowMap} method 68 * <p>This method returns a {@link SortedSet}, instead of the {@code Set} specified in the {@link 72 public SortedSet<R> rowKeySet() { in rowKeySet() 73 return (SortedSet<R>) rowMap().keySet(); in rowKeySet() 95 public SortedSet<R> keySet() { in keySet() 96 return (SortedSet<R>) super.keySet(); in keySet() 100 SortedSet<R> createKeySet() { in createKeySet()
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | AbstractSortedSetMultimap.java | 25 import java.util.SortedSet; 31 * #createCollection} method must return a {@code SortedSet}. 48 abstract SortedSet<V> createCollection(); in createCollection() 51 SortedSet<V> createUnmodifiableEmptyCollection() { in createUnmodifiableEmptyCollection() 56 <E> SortedSet<E> unmodifiableCollectionSubclass(Collection<E> collection) { in unmodifiableCollectionSubclass() 60 return Collections.unmodifiableSortedSet((SortedSet<E>) collection); in unmodifiableCollectionSubclass() 69 return new WrappedSortedSet(key, (SortedSet<V>) collection, null); in wrapCollection() 82 * returns a {@link SortedSet}, instead of the {@link Collection} specified in the {@link 86 public SortedSet<V> get(@NullableDecl K key) { in get() 87 return (SortedSet<V>) super.get(key); in get() [all …]
|
D | SortedSetMultimap.java | 26 import java.util.SortedSet; 31 * a {@link SortedSet}. It cannot hold duplicate key-value pairs; adding a key-value pair that's 36 * SortedSet} of values, while {@link Multimap#entries()} returns a {@link Set} of map entries. 38 * {@code SortedSet} values. 58 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the 62 SortedSet<V> get(@NullableDecl K key); in get() 68 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the 73 SortedSet<V> removeAll(@NullableDecl Object key); in removeAll() 79 * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the 86 SortedSet<V> replaceValues(K key, Iterable<? extends V> values); in replaceValues() [all …]
|
D | ForwardingSortedSet.java | 24 import java.util.SortedSet; 55 public abstract class ForwardingSortedSet<E> extends ForwardingSet<E> implements SortedSet<E> { 61 protected abstract SortedSet<E> delegate(); in delegate() 74 public SortedSet<E> headSet(E toElement) { in headSet() 84 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() 89 public SortedSet<E> tailSet(E fromElement) { in tailSet() 115 SortedSet<Object> self = (SortedSet<Object>) this; in standardContains() 136 SortedSet<Object> self = (SortedSet<Object>) this; in standardRemove() 159 protected SortedSet<E> standardSubSet(E fromElement, E toElement) { in standardSubSet()
|
D | SortedIterables.java | 21 import java.util.SortedSet; 40 if (elements instanceof SortedSet) { in hasSameComparator() 41 comparator2 = comparator((SortedSet<?>) elements); in hasSameComparator() 51 // if sortedSet.comparator() is null, the set must be naturally ordered 52 public static <E> Comparator<? super E> comparator(SortedSet<E> sortedSet) { in comparator() argument 53 Comparator<? super E> result = sortedSet.comparator(); in comparator()
|
D | StandardRowSortedTable.java | 28 import java.util.SortedSet; 36 * <p>The {@link #rowKeySet} method returns a {@link SortedSet} and the {@link #rowMap} method 68 * <p>This method returns a {@link SortedSet}, instead of the {@code Set} specified in the {@link 72 public SortedSet<R> rowKeySet() { in rowKeySet() 73 return (SortedSet<R>) rowMap().keySet(); in rowKeySet() 95 public SortedSet<R> keySet() { in keySet() 96 return (SortedSet<R>) super.keySet(); in keySet() 100 SortedSet<R> createKeySet() { in createKeySet()
|
/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/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/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/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()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableSortedSet.java | 28 import java.util.SortedSet; 39 implements SortedSet<E>, SortedIterable<E> { 123 SortedSet<E> delegate = new TreeSet<E>(comparator); in ofInternal() 167 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { in copyOfSorted() argument 168 Comparator<? super E> comparator = sortedSet.comparator(); in copyOfSorted() 172 return copyOfInternal(comparator, sortedSet.iterator()); in copyOfSorted() 201 SortedSet<E> delegate = new TreeSet<E>(comparator); in copyOfInternal() 211 if (elements instanceof SortedSet) { in hasSameComparator() 212 SortedSet<?> sortedSet = (SortedSet<?>) elements; in hasSameComparator() local 213 Comparator<?> comparator2 = sortedSet.comparator(); in hasSameComparator() [all …]
|