Searched refs:ImmutableSortedSet (Results 1 - 25 of 81) sorted by relevance

1234

/external/guava/guava/src/com/google/common/collect/
H A DImmutableSortedSetFauxverideShim.java21 * {@link ImmutableSortedSet} equivalents with deprecated, exception-throwing
26 * Set<Object> sorted = ImmutableSortedSet.copyOf(objects);
29 * <p>While we could put the overrides in {@link ImmutableSortedSet} itself, it
37 * Not supported. Use {@link ImmutableSortedSet#naturalOrder}, which offers
39 * {@link ImmutableSet#builder} from consumers of {@code ImmutableSortedSet}.
42 * @deprecated Use {@link ImmutableSortedSet#naturalOrder}, which offers
45 @Deprecated public static <E> ImmutableSortedSet.Builder<E> builder() {
52 * version in {@code ImmutableSortedSet}, not this dummy version.
56 * ImmutableSortedSet#of(Comparable)}.</b>
58 @Deprecated public static <E> ImmutableSortedSet<
[all...]
H A DDescendingImmutableSortedSet.java24 * Skeletal implementation of {@link ImmutableSortedSet#descendingSet()}.
28 class DescendingImmutableSortedSet<E> extends ImmutableSortedSet<E> {
29 private final ImmutableSortedSet<E> forward;
31 DescendingImmutableSortedSet(ImmutableSortedSet<E> forward) {
47 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) {
52 ImmutableSortedSet<E> subSetImpl(
58 ImmutableSortedSet<E> tailSetImpl(E fromElement, boolean inclusive) {
64 public ImmutableSortedSet<E> descendingSet() {
76 ImmutableSortedSet<E> createDescendingSet() {
H A DImmutableSortedSet.java47 * ImmutableSortedSet} contains its own private data and will <i>never</i>
61 * {@code ImmutableSortedSet} doesn't use {@link Object#equals} to determine if
73 * <b>Warning:</b> Like most sets, an {@code ImmutableSortedSet} will not
94 public abstract class ImmutableSortedSet<E> extends ImmutableSortedSetFauxverideShim<E> class in inherits:ImmutableSortedSetFauxverideShim,NavigableSet,SortedIterable
100 private static final ImmutableSortedSet<Comparable> NATURAL_EMPTY_SET =
104 private static <E> ImmutableSortedSet<E> emptySet() {
105 return (ImmutableSortedSet<E>) NATURAL_EMPTY_SET;
108 static <E> ImmutableSortedSet<E> emptySet(
120 public static <E> ImmutableSortedSet<E> of() {
127 public static <E extends Comparable<? super E>> ImmutableSortedSet<
584 ImmutableSortedSet(Comparator<? super E> comparator) { method in class:ImmutableSortedSet
[all...]
H A DEmptyImmutableSortedSet.java36 class EmptyImmutableSortedSet<E> extends ImmutableSortedSet<E> {
107 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) {
112 ImmutableSortedSet<E> subSetImpl(
118 ImmutableSortedSet<E> tailSetImpl(E fromElement, boolean inclusive) {
127 ImmutableSortedSet<E> createDescendingSet() {
H A DEmptyImmutableSortedMap.java34 private final transient ImmutableSortedSet<K> keySet;
37 this.keySet = ImmutableSortedSet.emptySet(comparator);
43 this.keySet = ImmutableSortedSet.emptySet(comparator);
52 public ImmutableSortedSet<K> keySet() {
H A DEmptyImmutableSortedMultiset.java31 private final ImmutableSortedSet<E> elementSet;
34 this.elementSet = ImmutableSortedSet.emptySet(comparator);
63 public ImmutableSortedSet<E> elementSet() {
H A DImmutableSortedAsList.java25 * List returned by {@code ImmutableSortedSet.asList()} when the set isn't empty.
35 ImmutableSortedSet<E> backingSet, ImmutableList<E> backingList) {
40 ImmutableSortedSet<E> delegateCollection() {
41 return (ImmutableSortedSet<E>) super.delegateCollection();
50 @GwtIncompatible("ImmutableSortedSet.indexOf")
63 @GwtIncompatible("ImmutableSortedSet.indexOf")
H A DRegularImmutableSortedSet.java48 final class RegularImmutableSortedSet<E> extends ImmutableSortedSet<E> {
219 ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) {
230 ImmutableSortedSet<E> subSetImpl(
237 ImmutableSortedSet<E> tailSetImpl(E fromElement, boolean inclusive) {
257 ImmutableSortedSet<E> getSubSet(int newFromIndex, int newToIndex) {
287 ImmutableSortedSet<E> createDescendingSet() {
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableSortedAsList.java22 * List returned by {@code ImmutableSortedSet.asList()} when the set isn't empty.
32 ImmutableSortedSet<E> backingSet, ImmutableList<E> backingList) {
37 ImmutableSortedSet<E> delegateCollection() {
38 return (ImmutableSortedSet<E>) super.delegateCollection();
H A DEmptyImmutableSortedSet.java26 class EmptyImmutableSortedSet<E> extends ImmutableSortedSet<E> {
H A DImmutableSortedSet.java34 * GWT emulation of {@link ImmutableSortedSet}.
38 public abstract class ImmutableSortedSet<E> class in inherits:ForwardingImmutableSet,SortedSet,SortedIterable
40 // TODO(cpovirk): split into ImmutableSortedSet/ForwardingImmutableSortedSet?
43 // which overrides ImmutableSet & which ImmutableSortedSet extends.
48 @Deprecated public static <E> ImmutableSortedSet.Builder<E> builder() {
57 private static final ImmutableSortedSet<Object> NATURAL_EMPTY_SET =
61 private static <E> ImmutableSortedSet<E> emptySet() {
62 return (ImmutableSortedSet<E>) NATURAL_EMPTY_SET;
65 static <E> ImmutableSortedSet<E> emptySet(
75 public static <E> ImmutableSortedSet<
255 ImmutableSortedSet(Comparator<? super E> comparator) { method in class:ImmutableSortedSet
259 ImmutableSortedSet(SortedSet<E> sortedDelegate) { method in class:ImmutableSortedSet
[all...]
H A DRegularImmutableSortedSet.java26 final class RegularImmutableSortedSet<E> extends ImmutableSortedSet<E> {
/external/smali/util/src/main/java/org/jf/util/
H A DImmutableUtils.java36 import com.google.common.collect.ImmutableSortedSet;
56 @Nonnull public static <T> ImmutableSortedSet<T> nullToEmptySortedSet(@Nullable ImmutableSortedSet<T> set) {
58 return ImmutableSortedSet.of();
H A DImmutableConverter.java36 import com.google.common.collect.ImmutableSortedSet;
111 public ImmutableSortedSet<ImmutableItem> toSortedSet(@Nonnull Comparator<? super ImmutableItem> comparator,
114 return ImmutableSortedSet.of();
118 if (iterable instanceof ImmutableSortedSet &&
119 ((ImmutableSortedSet)iterable).comparator().equals(comparator)) {
131 return (ImmutableSortedSet<ImmutableItem>)iterable;
137 return ImmutableSortedSet.copyOf(comparator, new Iterator<ImmutableItem>() {
148 return ImmutableSortedSet.of();
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableSortedSetTest.java35 * Unit tests for {@link ImmutableSortedSet}.
56 return ImmutableSortedSet.of();
60 return ImmutableSortedSet.of(e);
64 return ImmutableSortedSet.of(e1, e2);
68 return ImmutableSortedSet.of(e1, e2, e3);
73 return ImmutableSortedSet.of(e1, e2, e3, e4);
78 return ImmutableSortedSet.of(e1, e2, e3, e4, e5);
83 return ImmutableSortedSet.of(e1, e2, e3, e4, e5, e6, rest);
87 return ImmutableSortedSet.copyOf(elements);
91 return ImmutableSortedSet
[all...]
H A DImmutableSetMultimapTest.java223 assertFalse(multimap.get("a") instanceof ImmutableSortedSet);
224 assertFalse(multimap.get("x") instanceof ImmutableSortedSet);
225 assertFalse(multimap.asMap().get("a") instanceof ImmutableSortedSet);
248 assertFalse(multimap.get("a") instanceof ImmutableSortedSet);
249 assertFalse(multimap.get("x") instanceof ImmutableSortedSet);
250 assertFalse(multimap.asMap().get("a") instanceof ImmutableSortedSet);
268 assertTrue(multimap.get("a") instanceof ImmutableSortedSet);
270 ((ImmutableSortedSet<Integer>) multimap.get("a")).comparator());
271 assertTrue(multimap.get("x") instanceof ImmutableSortedSet);
273 ((ImmutableSortedSet<Intege
[all...]
/external/jsilver/src/com/google/streamhtmlparser/util/
H A DHtmlUtils.java19 import com.google.common.collect.ImmutableSortedSet;
88 ImmutableSortedSet.of(
142 ImmutableSortedSet.of(
161 ImmutableSortedSet.of(
177 ImmutableSortedSet.of(
/external/guava/guava-tests/test/com/google/common/collect/
H A DImmutableSortedSetTest.java55 * Unit tests for {@link ImmutableSortedSet}.
119 .named("ImmutableSortedSet.asList")
128 .named("ImmutableSortedSet.subSet.asList")
137 .named("ImmutableSortedSet.descendingSet.asList")
163 return ImmutableSortedSet.of();
167 return ImmutableSortedSet.of(e);
171 return ImmutableSortedSet.of(e1, e2);
175 return ImmutableSortedSet.of(e1, e2, e3);
180 return ImmutableSortedSet.of(e1, e2, e3, e4);
185 return ImmutableSortedSet
[all...]
H A DImmutableSetMultimapTest.java256 assertFalse(multimap.get("a") instanceof ImmutableSortedSet);
257 assertFalse(multimap.get("x") instanceof ImmutableSortedSet);
258 assertFalse(multimap.asMap().get("a") instanceof ImmutableSortedSet);
281 assertFalse(multimap.get("a") instanceof ImmutableSortedSet);
282 assertFalse(multimap.get("x") instanceof ImmutableSortedSet);
283 assertFalse(multimap.asMap().get("a") instanceof ImmutableSortedSet);
301 assertTrue(multimap.get("a") instanceof ImmutableSortedSet);
303 ((ImmutableSortedSet<Integer>) multimap.get("a")).comparator());
304 assertTrue(multimap.get("x") instanceof ImmutableSortedSet);
306 ((ImmutableSortedSet<Intege
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
H A DPoolClassDef.java47 @Nonnull final ImmutableSortedSet<Field> staticFields;
48 @Nonnull final ImmutableSortedSet<Field> instanceFields;
49 @Nonnull final ImmutableSortedSet<PoolMethod> directMethods;
50 @Nonnull final ImmutableSortedSet<PoolMethod> virtualMethods;
60 staticFields = ImmutableSortedSet.copyOf(classDef.getStaticFields());
61 instanceFields = ImmutableSortedSet.copyOf(classDef.getInstanceFields());
62 directMethods = ImmutableSortedSet.copyOf(
64 virtualMethods = ImmutableSortedSet.copyOf(
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DSetGenerators.java33 import com.google.common.collect.ImmutableSortedSet;
97 return ImmutableSortedSet.copyOf(elements);
106 return ImmutableSortedSet.copyOf(list)
116 return ImmutableSortedSet.copyOf(list)
127 return ImmutableSortedSet.copyOf(list)
136 return ImmutableSortedSet
151 return ImmutableSortedSet.orderedBy(STRING_REVERSED)
169 return new ImmutableSortedSet.Builder<String>(COMPARABLE_REVERSED)
184 return ImmutableSortedSet.<String>reverseOrder()
199 return ImmutableSortedSet
[all...]
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
H A DSetGenerators.java32 import com.google.common.collect.ImmutableSortedSet;
96 return ImmutableSortedSet.copyOf(elements);
105 return ImmutableSortedSet.copyOf(list)
115 return ImmutableSortedSet.copyOf(list)
126 return ImmutableSortedSet.copyOf(list)
138 return ImmutableSortedSet.orderedBy(STRING_REVERSED)
156 return new ImmutableSortedSet.Builder<String>(COMPARABLE_REVERSED)
171 return ImmutableSortedSet.<String>reverseOrder()
186 return ImmutableSortedSet.copyOf(elements);
201 ImmutableSet<String> set = ImmutableSortedSet
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/
H A DImmutableClassDef.java59 @Nonnull protected final ImmutableSortedSet<? extends ImmutableField> staticFields;
60 @Nonnull protected final ImmutableSortedSet<? extends ImmutableField> instanceFields;
61 @Nonnull protected final ImmutableSortedSet<? extends ImmutableMethod> directMethods;
62 @Nonnull protected final ImmutableSortedSet<? extends ImmutableMethod> virtualMethods;
119 @Nullable ImmutableSortedSet<? extends ImmutableField> staticFields,
120 @Nullable ImmutableSortedSet<? extends ImmutableField> instanceFields,
121 @Nullable ImmutableSortedSet<? extends ImmutableMethod> directMethods,
122 @Nullable ImmutableSortedSet<? extends ImmutableMethod> virtualMethods) {
/external/guava/guava-gwt/src/com/google/common/collect/
H A DEmptyImmutableSortedSet_CustomFieldSerializer.java48 * EmptyImmutableSortedSet always has no elements, ImmutableSortedSet.copyOf
52 ImmutableSortedSet.orderedBy(comparator).build();
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
H A DBuilderClassDef.java83 this.staticFields = ImmutableSortedSet.copyOf(Iterables.filter(fields, FieldUtil.FIELD_IS_STATIC));
84 this.instanceFields = ImmutableSortedSet.copyOf(Iterables.filter(fields, FieldUtil.FIELD_IS_INSTANCE));
85 this.directMethods = ImmutableSortedSet.copyOf(Iterables.filter(methods, MethodUtil.METHOD_IS_DIRECT));
86 this.virtualMethods = ImmutableSortedSet.copyOf(Iterables.filter(methods, MethodUtil.METHOD_IS_VIRTUAL));

Completed in 510 milliseconds

1234