/libcore/luni/src/main/java/java/util/ |
SortedSet.java | 22 * SortedSet is a Set which iterates over its elements in a sorted order. The 31 public interface SortedSet<E> extends Set<E> { 34 * Returns the comparator used to compare elements in this {@code SortedSet}. 41 * Returns the first element in this {@code SortedSet}. The first element 46 * when this {@code SortedSet} is empty. 51 * Returns a {@code SortedSet} of the specified portion of this 52 * {@code SortedSet} which contains elements less than the end element. The 53 * returned {@code SortedSet} is backed by this {@code SortedSet} so changes 63 * when the end element is null and this {@code SortedSet} doe [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ImmutableSortedSetTest.java | 35 import java.util.SortedSet; 59 @Override protected SortedSet<String> of() { 63 @Override protected SortedSet<String> of(String e) { 67 @Override protected SortedSet<String> of(String e1, String e2) { 71 @Override protected SortedSet<String> of(String e1, String e2, String e3) { 75 @Override protected SortedSet<String> of( 80 @Override protected SortedSet<String> of( 85 @Override protected SortedSet<String> of(String e1, String e2, String e3, 90 @Override protected SortedSet<String> copyOf(String[] elements) { 94 @Override protected SortedSet<String> copyOf(Collection<String> elements) [all...] |
ForwardingSortedSetTest.java | 32 import java.util.SortedSet; 42 private final SortedSet<T> backingSet; 44 StandardImplForwardingSortedSet(SortedSet<T> backingSet) { 48 @Override protected SortedSet<T> delegate() { 100 @Override public SortedSet<T> subSet(T fromElement, T toElement) { 135 final SortedSet<String> sortedSet 136 = createProxyInstance(SortedSet.class); 138 @Override protected SortedSet<String> delegate() { 139 return sortedSet; [all...] |
ConstraintsTest.java | 36 import java.util.SortedSet; 133 SortedSet<String> sortedSet = Sets.newTreeSet(asList("foo", "bar")); 134 SortedSet<String> constrained = Constraints.constrainedSortedSet( 135 sortedSet, TEST_CONSTRAINT); 136 sortedSet.add(TEST_ELEMENT); 139 assertTrue(sortedSet.equals(constrained)); 140 assertTrue(constrained.equals(sortedSet)); 141 assertEquals(sortedSet.toString(), constrained.toString()); 142 assertEquals(sortedSet.hashCode(), constrained.hashCode()) [all...] |
TreeMultisetTest.java | 30 import java.util.SortedSet; 136 SortedSet<String> elementSet = ms.elementSet(); 156 SortedSet<String> elementSet = ms.elementSet(); 158 SortedSet<String> subset = elementSet.subSet("b", "f"); 181 SortedSet<String> elementSet = ms.elementSet(); 183 SortedSet<String> subset = elementSet.subSet("b", "f"); 201 SortedSet<String> elementSet = ms.elementSet(); 203 SortedSet<String> subset = elementSet.subSet("b", "f"); 221 SortedSet<String> elementSet = ms.elementSet(); 223 SortedSet<String> subset = elementSet.subSet("b", "f") [all...] |
/external/guava/guava/src/com/google/common/collect/ |
AbstractSortedSetMultimap.java | 23 import java.util.SortedSet; 31 * must return a {@code SortedSet}. 48 @Override abstract SortedSet<V> createCollection(); 61 * key, this method returns a {@link SortedSet}, instead of the 64 @Override public SortedSet<V> get(@Nullable K key) { 65 return (SortedSet<V>) super.get(key); 73 * key, this method returns a {@link SortedSet}, instead of the 76 @Override public SortedSet<V> removeAll(@Nullable Object key) { 77 return (SortedSet<V>) super.removeAll(key); 85 * key, this method returns a {@link SortedSet}, instead of th [all...] |
ForwardingSortedSetMultimap.java | 22 import java.util.SortedSet; 44 @Override public SortedSet<V> get(@Nullable K key) { 48 @Override public SortedSet<V> removeAll(@Nullable Object key) { 52 @Override public SortedSet<V> replaceValues(
|
RowSortedTable.java | 25 import java.util.SortedSet; 30 * <p>The {@link #rowKeySet} method returns a {@link SortedSet} and the {@link 43 * <p>This method returns a {@link SortedSet}, instead of the {@code Set} 46 @Override SortedSet<R> rowKeySet();
|
ForwardingSortedSet.java | 25 import java.util.SortedSet; 58 implements SortedSet<E> { 63 @Override protected abstract SortedSet<E> delegate(); 76 public SortedSet<E> headSet(E toElement) { 86 public SortedSet<E> subSet(E fromElement, E toElement) { 91 public SortedSet<E> tailSet(E fromElement) { 115 SortedSet<Object> self = (SortedSet<Object>) this; 138 SortedSet<Object> self = (SortedSet<Object>) this [all...] |
SortedSetMultimap.java | 25 import java.util.SortedSet; 31 * that is, they comprise a {@link SortedSet}. It cannot hold duplicate 37 * each return a {@link SortedSet} of values, while {@link Multimap#entries()} 39 * so explicitly, the map returned by {@link #asMap} has {@code SortedSet} 58 * key, this method returns a {@link SortedSet}, instead of the 62 SortedSet<V> get(@Nullable K key); 68 * key, this method returns a {@link SortedSet}, instead of the 72 SortedSet<V> removeAll(@Nullable Object key); 79 * key, this method returns a {@link SortedSet}, instead of the 85 SortedSet<V> replaceValues(K key, Iterable<? extends V> values) [all...] |
SortedIterables.java | 30 import java.util.SortedSet; 49 if (elements instanceof SortedSet) { 50 SortedSet<?> sortedSet = (SortedSet<?>) elements; 51 comparator2 = sortedSet.comparator(); 70 SortedSet<E> sortedSet = Sets.newTreeSet(comparator); 71 Iterators.addAll(sortedSet, elements); 72 return sortedSet; [all...] |
StandardRowSortedTable.java | 28 import java.util.SortedSet; 37 * <p>The {@link #rowKeySet} method returns a {@link SortedSet} and the {@link 66 private transient SortedSet<R> rowKeySet; 71 * <p>This method returns a {@link SortedSet}, instead of the {@code Set} 74 @Override public SortedSet<R> rowKeySet() { 75 SortedSet<R> result = rowKeySet; 79 private class RowKeySortedSet extends RowKeySet implements SortedSet<R> { 96 public SortedSet<R> headSet(R toElement) { 103 public SortedSet<R> subSet(R fromElement, R toElement) { 112 public SortedSet<R> tailSet(R fromElement) [all...] |
SortedMultisets.java | 26 import java.util.SortedSet; 43 SortedSet<E> { 50 @Override public SortedSet<E> subSet(E fromElement, E toElement) { 55 @Override public SortedSet<E> headSet(E toElement) { 59 @Override public SortedSet<E> tailSet(E fromElement) { 99 private transient SortedSet<E> elementSet; 101 @Override public SortedSet<E> elementSet() { 102 SortedSet<E> result = elementSet;
|
Constraints.java | 29 import java.util.SortedSet; 153 * @param sortedSet the sorted set to constrain 157 public static <E> SortedSet<E> constrainedSortedSet( 158 SortedSet<E> sortedSet, Constraint<? super E> constraint) { 159 return new ConstrainedSortedSet<E>(sortedSet, constraint); 164 final SortedSet<E> delegate; 168 SortedSet<E> delegate, Constraint<? super E> constraint) { 172 @Override protected SortedSet<E> delegate() { 175 @Override public SortedSet<E> headSet(E toElement) [all...] |
AbstractSortedMultiset.java | 23 import java.util.SortedSet; 49 public SortedSet<E> elementSet() { 50 return (SortedSet<E>) super.elementSet(); 54 SortedSet<E> createElementSet() {
|
Synchronized.java | 37 import java.util.SortedSet; 237 private static <E> SortedSet<E> sortedSet( 238 SortedSet<E> set, @Nullable Object mutex) { 243 implements SortedSet<E> { 244 SynchronizedSortedSet(SortedSet<E> delegate, @Nullable Object mutex) { 248 @Override SortedSet<E> delegate() { 249 return (SortedSet<E>) super.delegate(); 260 public SortedSet<E> subSet(E fromElement, E toElement) { 262 return sortedSet(delegate().subSet(fromElement, toElement), mutex) [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
RegularImmutableSortedSet.java | 19 import java.util.SortedSet; 31 RegularImmutableSortedSet(SortedSet<E> delegate, boolean isSubset) {
|
ImmutableSortedSet.java | 28 import java.util.SortedSet; 39 extends ImmutableSet<E> implements SortedSet<E>, SortedIterable<E> { 130 SortedSet<E> delegate = new TreeSet<E>(comparator); 178 public static <E> ImmutableSortedSet<E> copyOfSorted(SortedSet<E> sortedSet) { 179 Comparator<? super E> comparator = sortedSet.comparator(); 183 return copyOfInternal(comparator, sortedSet.iterator()); 213 SortedSet<E> delegate = new TreeSet<E>(comparator); 224 if (elements instanceof SortedSet) { 225 SortedSet<?> sortedSet = (SortedSet<?>) elements [all...] |
Synchronized.java | 34 import java.util.SortedSet; 224 private static <E> SortedSet<E> sortedSet( 225 SortedSet<E> set, @Nullable Object mutex) { 230 implements SortedSet<E> { 231 SynchronizedSortedSet(SortedSet<E> delegate, @Nullable Object mutex) { 235 @Override SortedSet<E> delegate() { 236 return (SortedSet<E>) super.delegate(); 247 public SortedSet<E> subSet(E fromElement, E toElement) { 249 return sortedSet(delegate().subSet(fromElement, toElement), mutex) [all...] |
/frameworks/base/core/java/com/google/android/collect/ |
Sets.java | 22 import java.util.SortedSet; 72 * Creates an empty {@code SortedSet} instance. 74 * @return a newly-created, initially-empty {@code SortedSet}. 76 public static <E> SortedSet<E> newSortedSet() { 81 * Creates a {@code SortedSet} instance containing the given elements. 84 * @return a newly-created {@code SortedSet} containing those elements (minus 87 public static <E> SortedSet<E> newSortedSet(E... elements) { 88 SortedSet<E> set = new TreeSet<E>();
|
/libcore/luni/src/test/java/libcore/java/util/ |
TreeSetTest.java | 20 import java.util.SortedSet; 59 final SortedSet<String> subSet = set.subSet("a", "c"); 60 new SerializationTester<SortedSet<String>>(subSet, s) { 61 @Override protected void verify(SortedSet<String> deserialized) { 77 final SortedSet<String> subSet = set.subSet("a", false, "c", true); 78 new SerializationTester<SortedSet<String>>(subSet, s) { 79 @Override protected void verify(SortedSet<String> deserialized) { 89 private void assertBounded(SortedSet<String> deserialized, boolean bounded) {
|
OldTreeSetTest.java | 26 import java.util.SortedSet; 65 new TreeSet((SortedSet)null); 135 // Test for method java.util.SortedSet 142 SortedSet sort = ts.headSet(new Integer(100)); 180 // Test for method java.util.SortedSet 184 SortedSet aSubSet = ts.subSet(objArray[startPos], objArray[endPos]); 221 // Test for method java.util.SortedSet 228 SortedSet sort = ts.tailSet(new Integer(101));
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
TestStringSortedSetGenerator.java | 21 import java.util.SortedSet; 33 @Override protected abstract SortedSet<String> create(String[] elements);
|
/development/tools/idegen/src/ |
Configuration.java | 27 import java.util.SortedSet; 37 public final SortedSet<File> sourceRoots; 43 public final SortedSet<File> excludedDirs; 69 SortedSet<File> excludedDirs = new TreeSet<File>(); 70 SortedSet<File> sourceRoots = new TreeSet<File>(); 226 public SortedSet<File> excludesUnderSourceRoots() { 229 SortedSet<File> picked = new TreeSet<File>(); 232 SortedSet<File> tailSet = excludedDirs.tailSet(sourceRoot);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
SetGenerators.java | 44 import java.util.SortedSet; 87 @Override protected SortedSet<String> create(String[] elements) { 94 @Override protected SortedSet<String> create(String[] elements) { 104 @Override protected SortedSet<String> create(String[] elements) { 114 @Override protected SortedSet<String> create(String[] elements) { 129 @Override protected SortedSet<String> create(String[] elements) { 147 @Override protected SortedSet<String> create(String[] elements) { 162 @Override protected SortedSet<String> create(String[] elements) {
|