/external/guava/guava-tests/test/com/google/common/collect/ |
D | ImmutableSortedSetTest.java | 51 import java.util.SortedSet; 162 @Override protected SortedSet<String> of() { in of() 166 @Override protected SortedSet<String> of(String e) { in of() 170 @Override protected SortedSet<String> of(String e1, String e2) { in of() 174 @Override protected SortedSet<String> of(String e1, String e2, String e3) { in of() 178 @Override protected SortedSet<String> of( in of() 183 @Override protected SortedSet<String> of( in of() 188 @Override protected SortedSet<String> of(String e1, String e2, String e3, in of() 193 @Override protected SortedSet<String> copyOf(String[] elements) { in copyOf() 197 @Override protected SortedSet<String> copyOf(Collection<String> elements) { in copyOf() [all …]
|
D | ForwardingSortedSetTest.java | 32 import java.util.SortedSet; 42 private final SortedSet<T> backingSet; 44 StandardImplForwardingSortedSet(SortedSet<T> backingSet) { in StandardImplForwardingSortedSet() 48 @Override protected SortedSet<T> delegate() { in delegate() 100 @Override public SortedSet<T> subSet(T fromElement, T toElement) { in subSet() 135 final SortedSet<String> sortedSet in setUp() local 136 = createProxyInstance(SortedSet.class); in setUp() 138 @Override protected SortedSet<String> delegate() { in setUp() 139 return sortedSet; in setUp() 174 @Override SortedSet<String> forward() { in forward() [all …]
|
D | ConstraintsTest.java | 34 import java.util.SortedSet; 124 SortedSet<String> sortedSet = Sets.newTreeSet(asList("foo", "bar")); in testConstrainedSortedSetLegal() local 125 SortedSet<String> constrained = Constraints.constrainedSortedSet( in testConstrainedSortedSetLegal() 126 sortedSet, TEST_CONSTRAINT); in testConstrainedSortedSetLegal() 127 sortedSet.add(TEST_ELEMENT); in testConstrainedSortedSetLegal() 130 assertTrue(sortedSet.equals(constrained)); in testConstrainedSortedSetLegal() 131 assertTrue(constrained.equals(sortedSet)); in testConstrainedSortedSetLegal() 132 assertEquals(sortedSet.toString(), constrained.toString()); in testConstrainedSortedSetLegal() 133 assertEquals(sortedSet.hashCode(), constrained.hashCode()); in testConstrainedSortedSetLegal() 134 assertThat(sortedSet).has().exactly("bar", "cat", "dog", "foo", "qux", TEST_ELEMENT).inOrder(); in testConstrainedSortedSetLegal() [all …]
|
D | TreeMultisetTest.java | 44 import java.util.SortedSet; 160 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSortedSetMethods() 180 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemove() 182 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove() 205 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemoveAll() 207 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll() 225 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRetainAll() 227 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRetainAll() 245 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetClear() 247 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetClear() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableSortedSetTest.java | 31 import java.util.SortedSet; 55 @Override protected SortedSet<String> of() { in of() 59 @Override protected SortedSet<String> of(String e) { in of() 63 @Override protected SortedSet<String> of(String e1, String e2) { in of() 67 @Override protected SortedSet<String> of(String e1, String e2, String e3) { in of() 71 @Override protected SortedSet<String> of( in of() 76 @Override protected SortedSet<String> of( in of() 81 @Override protected SortedSet<String> of(String e1, String e2, String e3, in of() 86 @Override protected SortedSet<String> copyOf(String[] elements) { in copyOf() 90 @Override protected SortedSet<String> copyOf(Collection<String> elements) { in copyOf() [all …]
|
D | TreeMultisetTest.java | 29 import java.util.SortedSet; 80 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSortedSetMethods() 100 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemove() 102 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove() 125 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRemoveAll() 127 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll() 145 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetRetainAll() 147 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRetainAll() 165 SortedSet<String> elementSet = ms.elementSet(); in testElementSetSubsetClear() 167 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetClear() [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/util/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) {
|
D | ArraySortedSet.java | 39 public class ArraySortedSet<T> implements SortedSet<T> { 136 public SortedSet<T> subSet(T fromElement, T toElement) { in subSet() 141 public SortedSet<T> headSet(T toElement) { in headSet() 146 public SortedSet<T> tailSet(T fromElement) { in tailSet() 182 if (o instanceof SortedSet) { in equals() 183 SortedSet other = (SortedSet)o; in equals()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | SortedSetNavigationTester.java | 30 import java.util.SortedSet; 33 * A generic JUnit test which tests operations on a SortedSet. Can't be 42 private SortedSet<E> sortedSet; field in SortedSetNavigationTester 50 sortedSet = (SortedSet<E>) getSet(); in setUp() 53 Collections.sort(values, sortedSet.comparator()); in setUp() 68 sortedSet.first(); in testEmptySetFirst() 77 sortedSet.last(); in testEmptySetLast() 85 assertEquals(a, sortedSet.first()); in testSingletonSetFirst() 90 assertEquals(a, sortedSet.last()); in testSingletonSetLast() 95 assertEquals(a, sortedSet.first()); in testFirst() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | AbstractSortedSetMultimap.java | 25 import java.util.SortedSet; 33 * must return a {@code SortedSet}. 51 abstract SortedSet<V> createCollection(); in createCollection() 54 SortedSet<V> createUnmodifiableEmptyCollection() { in createUnmodifiableEmptyCollection() 74 * key, this method returns a {@link SortedSet}, instead of the 77 @Override public SortedSet<V> get(@Nullable K key) { in get() 78 return (SortedSet<V>) super.get(key); in get() 86 * key, this method returns a {@link SortedSet}, instead of the 89 @Override public SortedSet<V> removeAll(@Nullable Object key) { in removeAll() 90 return (SortedSet<V>) super.removeAll(key); in removeAll() [all …]
|
D | SortedSetMultimap.java | 25 import java.util.SortedSet; 31 * that is, they comprise a {@link SortedSet}. It cannot hold duplicate 38 * each return a {@link SortedSet} of values, while {@link Multimap#entries()} 40 * so explicitly, the map returned by {@link #asMap} has {@code SortedSet} 63 * key, this method returns a {@link SortedSet}, instead of the 67 SortedSet<V> get(@Nullable K key); in get() 73 * key, this method returns a {@link SortedSet}, instead of the 77 SortedSet<V> removeAll(@Nullable Object key); in removeAll() 84 * key, this method returns a {@link SortedSet}, instead of the 90 SortedSet<V> replaceValues(K key, Iterable<? extends V> values); in replaceValues() [all …]
|
D | ForwardingSortedSet.java | 25 import java.util.SortedSet; 58 implements SortedSet<E> { 63 @Override protected abstract SortedSet<E> delegate(); in delegate() 76 public SortedSet<E> headSet(E toElement) { in headSet() 86 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() 91 public SortedSet<E> tailSet(E fromElement) { in tailSet() 115 SortedSet<Object> self = (SortedSet<Object>) this; in standardContains() 138 SortedSet<Object> self = (SortedSet<Object>) this; in standardRemove() 163 @Beta protected SortedSet<E> standardSubSet(E fromElement, E toElement) { in standardSubSet()
|
D | SortedIterables.java | 22 import java.util.SortedSet; 41 if (elements instanceof SortedSet) { in hasSameComparator() 42 comparator2 = comparator((SortedSet<?>) elements); in hasSameComparator() 52 // if sortedSet.comparator() is null, the set must be naturally ordered 53 public static <E> Comparator<? super E> comparator(SortedSet<E> sortedSet) { in comparator() argument 54 Comparator<? super E> result = sortedSet.comparator(); in comparator()
|
D | Constraints.java | 28 import java.util.SortedSet; 125 * @param sortedSet the sorted set to constrain 129 public static <E> SortedSet<E> constrainedSortedSet( in constrainedSortedSet() 130 SortedSet<E> sortedSet, Constraint<? super E> constraint) { in constrainedSortedSet() argument 131 return new ConstrainedSortedSet<E>(sortedSet, constraint); in constrainedSortedSet() 136 final SortedSet<E> delegate; 140 SortedSet<E> delegate, Constraint<? super E> constraint) { in ConstrainedSortedSet() 144 @Override protected SortedSet<E> delegate() { in delegate() 147 @Override public SortedSet<E> headSet(E toElement) { in headSet() 150 @Override public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() [all …]
|
D | StandardRowSortedTable.java | 28 import java.util.SortedSet; 37 * <p>The {@link #rowKeySet} method returns a {@link SortedSet} and the {@link 69 * <p>This method returns a {@link SortedSet}, instead of the {@code Set} 72 @Override public SortedSet<R> rowKeySet() { in rowKeySet() 73 return (SortedSet<R>) rowMap().keySet(); in rowKeySet() 93 public SortedSet<R> keySet() { in keySet() 94 return (SortedSet<R>) super.keySet(); in keySet() 98 SortedSet<R> createKeySet() { in createKeySet()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | SetGenerators.java | 53 import java.util.SortedSet; 96 @Override protected SortedSet<String> create(String[] elements) { in create() 103 @Override protected SortedSet<String> create(String[] elements) { in create() 113 @Override protected SortedSet<String> create(String[] elements) { in create() 123 @Override protected SortedSet<String> create(String[] elements) { in create() 135 @Override protected SortedSet<String> create(String[] elements) { in create() 150 @Override protected SortedSet<String> create(String[] elements) { in create() 168 @Override protected SortedSet<String> create(String[] elements) { in create() 183 @Override protected SortedSet<String> create(String[] elements) { in create() 308 private static <E extends Comparable<? super E>> SortedSet<E> nullCheckedTreeSet(E[] elements) { in nullCheckedTreeSet() [all …]
|
D | SortedSetMultimapAsMapTester.java | 26 import java.util.SortedSet; 40 SortedSet<V> valueSet = (SortedSet<V>) valueCollection; in testAsMapValuesImplementSortedSet() 47 SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key); in testAsMapGetImplementsSortedSet() 57 SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().remove(key); in testAsMapRemoveImplementsSortedSet()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/ |
D | SetGenerators.java | 52 import java.util.SortedSet; 95 @Override protected SortedSet<String> create(String[] elements) { in create() 102 @Override protected SortedSet<String> create(String[] elements) { in create() 112 @Override protected SortedSet<String> create(String[] elements) { in create() 122 @Override protected SortedSet<String> create(String[] elements) { in create() 137 @Override protected SortedSet<String> create(String[] elements) { in create() 155 @Override protected SortedSet<String> create(String[] elements) { in create() 170 @Override protected SortedSet<String> create(String[] elements) { in create() 281 private static <E extends Comparable<? super E>> SortedSet<E> nullCheckedTreeSet(E[] elements) { in nullCheckedTreeSet() 282 SortedSet<E> set = newTreeSet(); in nullCheckedTreeSet() [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableSortedSet.java | 28 import java.util.SortedSet; 39 extends ForwardingImmutableSet<E> implements SortedSet<E>, SortedIterable<E> { 126 SortedSet<E> delegate = new TreeSet<E>(comparator); in ofInternal() 171 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { in copyOfSorted() argument 172 Comparator<? super E> comparator = sortedSet.comparator(); in copyOfSorted() 176 return copyOfInternal(comparator, sortedSet.iterator()); in copyOfSorted() 206 SortedSet<E> delegate = new TreeSet<E>(comparator); in copyOfInternal() 217 if (elements instanceof SortedSet) { in hasSameComparator() 218 SortedSet<?> sortedSet = (SortedSet<?>) elements; in hasSameComparator() local 219 Comparator<?> comparator2 = sortedSet.comparator(); in hasSameComparator() [all …]
|
D | Synchronized.java | 36 import java.util.SortedSet; 226 private static <E> SortedSet<E> sortedSet( in sortedSet() method in Synchronized 227 SortedSet<E> set, @Nullable Object mutex) { in sortedSet() 232 implements SortedSet<E> { 233 SynchronizedSortedSet(SortedSet<E> delegate, @Nullable Object mutex) { in SynchronizedSortedSet() 237 @Override SortedSet<E> delegate() { in delegate() 238 return (SortedSet<E>) super.delegate(); in delegate() 249 public SortedSet<E> subSet(E fromElement, E toElement) { in subSet() 251 return sortedSet(delegate().subSet(fromElement, toElement), mutex); in subSet() 256 public SortedSet<E> headSet(E toElement) { in headSet() [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; 94 @Nonnull @Override public SortedSet<BuilderField> getStaticFields() { return staticFields; } in getStaticFields() 95 @Nonnull @Override public SortedSet<BuilderField> getInstanceFields() { return instanceFields; } in getInstanceFields() 96 @Nonnull @Override public SortedSet<BuilderMethod> getDirectMethods() { return directMethods; } in getDirectMethods() 97 … @Nonnull @Override public SortedSet<BuilderMethod> getVirtualMethods() { return virtualMethods; } in getVirtualMethods()
|
/external/guava/guava-testlib/test/com/google/common/collect/testing/ |
D | SafeTreeSetTest.java | 38 import java.util.SortedSet; 85 SortedSet<String> set = new SafeTreeSet<String>(); in testEmpty_serialization() 86 SortedSet<String> copy = SerializableTester.reserializeAndAssert(set); in testEmpty_serialization() 92 SortedSet<String> set = new SafeTreeSet<String>(); in testSingle_serialization() 94 SortedSet<String> copy = SerializableTester.reserializeAndAssert(set); in testSingle_serialization() 100 SortedSet<String> set = new SafeTreeSet<String>(); in testSeveral_serialization() 104 SortedSet<String> copy = SerializableTester.reserializeAndAssert(set); in testSeveral_serialization()
|
/external/jcommander/src/test/java/com/beust/jcommander/ |
D | SetConverter.java | 3 import java.util.SortedSet; 6 public class SetConverter implements IStringConverter<SortedSet<Integer>> { 8 public SortedSet<Integer> convert(String value) { in convert() 9 SortedSet<Integer> set = new TreeSet<Integer>(); in convert()
|