Searched refs:ImmutableList (Results 1 - 25 of 167) sorted by relevance

1234567

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DEmptyImmutableList.java23 final class EmptyImmutableList extends ImmutableList<Object> {
H A DRegularImmutableList.java26 class RegularImmutableList<E> extends ImmutableList<E> {
H A DImmutableList.java35 * GWT emulated version of {@link ImmutableList}.
40 public abstract class ImmutableList<E> extends ForwardingImmutableCollection<E> class in inherits:ForwardingImmutableCollection,List,RandomAccess
45 ImmutableList(List<E> delegate) { method in class:ImmutableList
50 ImmutableList() { method in class:ImmutableList
56 public static <E> ImmutableList<E> of() {
57 return (ImmutableList<E>) EmptyImmutableList.INSTANCE;
60 public static <E> ImmutableList<E> of(E element) {
64 public static <E> ImmutableList<E> of(E e1, E e2) {
66 ImmutableList.<E>nullCheckedList(e1, e2));
69 public static <E> ImmutableList<
[all...]
H A DSingletonImmutableList.java28 final class SingletonImmutableList<E> extends ImmutableList<E> {
H A DImmutableCollection.java116 private transient ImmutableList<E> asList;
118 public ImmutableList<E> asList() {
119 ImmutableList<E> list = asList;
123 ImmutableList<E> createAsList() {
126 return ImmutableList.of();
128 return ImmutableList.of(iterator().next());
/external/owasp/sanitizer/src/tests/org/owasp/html/
H A DTagBalancingHtmlStreamRendererTest.java31 import com.google.common.collect.ImmutableList;
61 balancer.openTag("html", ImmutableList.<String>of());
62 balancer.openTag("head", ImmutableList.<String>of());
63 balancer.openTag("title", ImmutableList.<String>of());
68 balancer.openTag("body", ImmutableList.<String>of());
69 balancer.openTag("p", ImmutableList.of("id", "p'0"));
71 balancer.openTag("Br", ImmutableList.<String>of());
86 balancer.openTag("i", ImmutableList.<String>of());
88 balancer.openTag("b", ImmutableList.<String>of());
102 balancer.openTag("ul", ImmutableList
[all...]
H A DHtmlStreamRendererTest.java34 import com.google.common.collect.ImmutableList;
100 renderer.openTag(":svg", ImmutableList.<String>of());
101 renderer.openTag("svg:", ImmutableList.<String>of());
102 renderer.openTag("-1", ImmutableList.<String>of());
103 renderer.openTag("svg::svg", ImmutableList.<String>of());
104 renderer.openTag("a@b", ImmutableList.<String>of());
123 renderer.openTag("div", ImmutableList.of(":svg", "x"));
124 renderer.openTag("div", ImmutableList.of("svg:", "x"));
125 renderer.openTag("div", ImmutableList.of("-1", "x"));
126 renderer.openTag("div", ImmutableList
[all...]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/util/
H A DTryListBuilderTest.java34 import com.google.common.collect.ImmutableList;
56 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(0, 10,
57 ImmutableList.of(new ImmutableExceptionHandler(null, 5))));
70 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(5, 5,
71 ImmutableList.of(new ImmutableExceptionHandler(null, 15))));
84 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(0, 10,
85 ImmutableList.of(new ImmutableExceptionHandler("Ljava/lang/Exception;", 5))));
98 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(5, 5,
99 ImmutableList.of(new ImmutableExceptionHandler("Ljava/lang/Exception;", 15))));
113 List<? extends TryBlock> expected = ImmutableList
[all...]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/util/
H A DSuperclassChainTest.java34 import com.google.common.collect.ImmutableList;
67 ImmutableList.<TypeProto>of(),
68 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(objectClassProto)));
71 ImmutableList.<TypeProto>of(objectClassProto),
72 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(oneClassProto)));
75 ImmutableList.<TypeProto>of(oneClassProto, objectClassProto),
76 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(twoClassProto)));
79 ImmutableList.<TypeProto>of(twoClassProto, oneClassProto, objectClassProto),
80 ImmutableList.copyOf(TypeProtoUtils.getSuperclassChain(threeClassProto)));
98 ImmutableList
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/value/
H A DImmutableArrayEncodedValue.java34 import com.google.common.collect.ImmutableList;
43 @Nonnull protected final ImmutableList<? extends ImmutableEncodedValue> value;
49 public ImmutableArrayEncodedValue(@Nonnull ImmutableList<ImmutableEncodedValue> value) {
60 @Nonnull public ImmutableList<? extends ImmutableEncodedValue> getValue() { return value; }
/external/smali/util/src/main/java/org/jf/util/
H A DImmutableUtils.java34 import com.google.common.collect.ImmutableList;
42 @Nonnull public static <T> ImmutableList<T> nullToEmptyList(@Nullable ImmutableList<T> list) {
44 return ImmutableList.of();
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/
H A DImmutableMethodImplementation.java34 import com.google.common.collect.ImmutableList;
50 @Nonnull protected final ImmutableList<? extends ImmutableInstruction> instructions;
51 @Nonnull protected final ImmutableList<? extends ImmutableTryBlock> tryBlocks;
52 @Nonnull protected final ImmutableList<? extends ImmutableDebugItem> debugItems;
65 @Nullable ImmutableList<? extends ImmutableInstruction> instructions,
66 @Nullable ImmutableList<? extends ImmutableTryBlock> tryBlocks,
67 @Nullable ImmutableList<? extends ImmutableDebugItem> debugItems) {
90 @Nonnull @Override public ImmutableList<? extends ImmutableInstruction> getInstructions() { return instructions; }
91 @Nonnull @Override public ImmutableList<? extends ImmutableTryBlock> getTryBlocks() { return tryBlocks; }
92 @Nonnull @Override public ImmutableList<
[all...]
H A DImmutableTryBlock.java34 import com.google.common.collect.ImmutableList;
48 @Nonnull protected final ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers;
60 @Nullable ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) {
79 @Nonnull @Override public ImmutableList<? extends ImmutableExceptionHandler> getExceptionHandlers() {
84 public static ImmutableList<ImmutableTryBlock> immutableListOf(
/external/guava/guava-tests/test/com/google/common/collect/
H A DImmutableListTest.java60 * Unit test for {@link ImmutableList}.
73 .named("ImmutableList")
78 .named("ImmutableList, built with Builder.add")
83 .named("ImmutableList, built with Builder.addAll")
88 .named("ImmutableList, reversed")
95 ImmutableList.copyOf(elements));
98 .named("ImmutableList, reserialized")
104 .named("ImmutableList, head subList")
110 .named("ImmutableList, tail subList")
116 .named("ImmutableList, middl
[all...]
/external/llvm/include/llvm/ADT/
H A DImmutableList.h1 //==--- ImmutableList.h - Immutable (functional) list interface --*- C++ -*-==//
10 // This file defines the ImmutableList class.
54 /// ImmutableList - This class represents an immutable (functional) list.
57 /// This interface matches ImmutableSet and ImmutableMap. ImmutableList
63 class ImmutableList { class in namespace:llvm
75 ImmutableList(const ImmutableListImpl<T>* x = 0) : X(x) {} function in class:llvm::ImmutableList
85 iterator(ImmutableList l) : L(l.getInternalPointer()) {}
91 ImmutableList getList() const { return L; }
118 bool isEqual(const ImmutableList& L) const { return X == L.X; }
120 bool operator==(const ImmutableList
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/
H A DImmutableArrayPayload.java34 import com.google.common.collect.ImmutableList;
48 @Nonnull protected final ImmutableList<Number> arrayElements;
54 this.arrayElements = arrayElements==null ? ImmutableList.<Number>of() : ImmutableList.copyOf(arrayElements);
58 @Nullable ImmutableList<Number> arrayElements) {
/external/guava/guava/src/com/google/common/collect/
H A DImmutableList.java42 * ImmutableList} contains its own private data and will <i>never</i> change.
43 * {@code ImmutableList} is convenient for {@code public static final} lists
58 public abstract class ImmutableList<E> extends ImmutableCollection<E> class in inherits:ImmutableCollection,List,RandomAccess
67 public static <E> ImmutableList<E> of() {
68 return (ImmutableList<E>) EmptyImmutableList.INSTANCE;
79 public static <E> ImmutableList<E> of(E element) {
88 public static <E> ImmutableList<E> of(E e1, E e2) {
97 public static <E> ImmutableList<E> of(E e1, E e2, E e3) {
106 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4) {
115 public static <E> ImmutableList<
310 ImmutableList() {} method in class:ImmutableList
[all...]
H A DCompoundOrdering.java28 final ImmutableList<Comparator<? super T>> comparators;
33 = ImmutableList.<Comparator<? super T>>of(primary, secondary);
37 this.comparators = ImmutableList.copyOf(comparators);
42 this.comparators = new ImmutableList.Builder<Comparator<? super T>>()
H A DEmptyImmutableListMultimap.java32 super(ImmutableMap.<Object, ImmutableList<Object>>of(), 0);
H A DImmutableSortedAsList.java30 final class ImmutableSortedAsList<E> extends ImmutableList<E> implements SortedIterable<E> {
32 private final transient ImmutableList<E> backingList;
35 ImmutableSortedSet<E> backingSet, ImmutableList<E> backingList) {
61 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
63 return (fromIndex == toIndex) ? ImmutableList.<E>of()
H A DImmutableCollection.java145 * TODO(kevinb): Restructure code so ImmutableList doesn't contain this
148 private transient ImmutableList<E> asList;
155 public ImmutableList<E> asList() {
156 ImmutableList<E> list = asList;
160 ImmutableList<E> createAsList() {
163 return ImmutableList.of();
165 return ImmutableList.of(iterator().next());
205 @Override ImmutableList<Object> createAsList() {
206 return ImmutableList.of();
238 @Override ImmutableList<
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/util/
H A DCharSequenceConverter.java34 import com.google.common.collect.ImmutableList;
45 public static ImmutableList<String> immutableStringList(@Nullable Iterable<? extends CharSequence> iterable) {
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DListGenerators.java22 import com.google.common.collect.ImmutableList;
23 import com.google.common.collect.ImmutableList.Builder;
44 return ImmutableList.copyOf(elements);
50 Builder<String> builder = ImmutableList.<String>builder();
61 return ImmutableList.<String>builder()
72 return ImmutableList.copyOf(list).reverse();
83 return ImmutableList.copyOf(all)
95 return ImmutableList.copyOf(all)
111 return ImmutableList.copyOf(all)
125 return ImmutableList
[all...]
/external/guava/guava-tests/test/com/google/common/net/
H A DHostSpecifierTest.java19 import com.google.common.collect.ImmutableList;
39 private static final List<String> GOOD_IPS = ImmutableList.of(
42 private static final List<String> BAD_IPS = ImmutableList.of(
45 private static final List<String> GOOD_DOMAINS = ImmutableList.of(
48 private static final List<String> BAD_DOMAINS = ImmutableList.of(
/external/guava/guava-testlib/src/com/google/common/testing/
H A DRelationshipTester.java22 import com.google.common.collect.ImmutableList;
37 private final List<ImmutableList<T>> groups = Lists.newArrayList();
45 groups.add(ImmutableList.copyOf(group));
51 ImmutableList<T> group = groups.get(groupNumber);
63 ImmutableList<T> unrelatedGroup = groups.get(unrelatedGroupNumber);
75 ImmutableList<T> group = groups.get(groupNumber);

Completed in 1338 milliseconds

1234567