OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:sortedSet
(Results
1 - 14
of
14
) sorted by null
/external/guava/guava-tests/test/com/google/common/collect/
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
...]
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
...]
ImmutableSetTest.java
166
ImmutableSortedSet<String>
sortedSet
= ImmutableSortedSet.of("a");
167
ImmutableSet<String> copy = ImmutableSet.copyOf(
sortedSet
);
168
assertNotSame(
sortedSet
, copy);
IterablesTest.java
50
import java.util.
SortedSet
;
858
SortedSet
<String>
sortedSet
= ImmutableSortedSet.of("b", "c", "a");
859
assertEquals("c", Iterables.getLast(
sortedSet
));
922
SortedSet
<String> diesOnIteratorSortedSet = new DiesOnIteratorTreeSet();
929
SortedSet
<String>
sortedSet
= ImmutableSortedSet.of();
931
Iterables.getLast(
sortedSet
);
[
all
...]
/external/guava/guava/src/com/google/common/collect/
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
...]
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
...]
ImmutableSortedSet.java
34
import java.util.
SortedSet
;
39
* An immutable {@code
SortedSet
} that stores its elements in a sorted array.
90
implements
SortedSet
<E>, SortedIterable<E> {
217
* copy of a {@code
SortedSet
} that preserves the comparator, call {@link
252
* copy of a {@code
SortedSet
} that preserves the comparator, call
374
* <p>This method is safe to use even when {@code
sortedSet
} is a synchronized
378
* @throws NullPointerException if {@code
sortedSet
} or any of its elements
382
public static <E> ImmutableSortedSet<E> copyOfSorted(
SortedSet
<E>
sortedSet
) {
383
Comparator<? super E> comparator =
sortedSet
.comparator()
[
all
...]
Iterables.java
42
import java.util.
SortedSet
;
805
if (iterable instanceof
SortedSet
) {
806
SortedSet
<T>
sortedSet
= (
SortedSet
<T>) iterable;
807
return
sortedSet
.last();
839
if (iterable instanceof
SortedSet
) {
840
SortedSet
<T>
sortedSet
= (
SortedSet
<T>) iterable
[
all
...]
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
...]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
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
...]
Iterables.java
39
import java.util.
SortedSet
;
763
if (iterable instanceof
SortedSet
) {
764
SortedSet
<T>
sortedSet
= (
SortedSet
<T>) iterable;
765
return
sortedSet
.last();
797
if (iterable instanceof
SortedSet
) {
798
SortedSet
<T>
sortedSet
= (
SortedSet
<T>) iterable
[
all
...]
/prebuilts/tools/common/guava-tools/
guava-10.0.1.jar
/prebuilt/common/tradefed/
tradefed-prebuilt.jar
Completed in 2119 milliseconds