/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
EmptyImmutableList.java | 23 final class EmptyImmutableList extends ImmutableList<Object> {
|
RegularImmutableList.java | 26 class RegularImmutableList<E> extends ImmutableList<E> {
|
ImmutableList.java | 35 * GWT emulated version of {@link ImmutableList}. 40 public abstract class ImmutableList<E> extends ForwardingImmutableCollection<E> 45 ImmutableList(List<E> delegate) { 50 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<E> of(E e1, E e2, E e3) [all...] |
SingletonImmutableList.java | 28 final class SingletonImmutableList<E> extends ImmutableList<E> {
|
ImmutableCollection.java | 116 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/ |
TagBalancingHtmlStreamRendererTest.java | 31 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.<String>of()) [all...] |
HtmlStreamRendererTest.java | 34 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.of("svg::svg", "x")) [all...] |
/external/llvm/include/llvm/ADT/ |
ImmutableList.h | 1 //==--- 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 { 75 ImmutableList(const ImmutableListImpl<T>* x = 0) : X(x) {} 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& L) const { return isEqual(L); [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ImmutableListTest.java | 60 * 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, middle subList" [all...] |
/external/guava/guava/src/com/google/common/collect/ |
ImmutableList.java | 42 * 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> 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<E> of(E e1, E e2, E e3, E e4, E e5) [all...] |
CompoundOrdering.java | 28 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>>()
|
EmptyImmutableListMultimap.java | 32 super(ImmutableMap.<Object, ImmutableList<Object>>of(), 0);
|
ImmutableSortedAsList.java | 30 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()
|
ImmutableCollection.java | 145 * 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<E> createAsList() [all...] |
TransformedImmutableList.java | 27 * A transforming wrapper around an ImmutableList. For internal use only. {@link 34 abstract class TransformedImmutableList<D, E> extends ImmutableList<E> { 36 TransformedView(ImmutableList<D> backingList) { 45 private transient final ImmutableList<D> backingList; 47 TransformedImmutableList(ImmutableList<D> backingList) { 93 @Override public ImmutableList<E> subList(int fromIndex, int toIndex) {
|
ImmutableListMultimap.java | 253 ImmutableMap.Builder<K, ImmutableList<V>> builder = ImmutableMap.builder(); 258 ImmutableList<V> list = ImmutableList.copyOf(entry.getValue()); 268 ImmutableListMultimap(ImmutableMap<K, ImmutableList<V>> map, int size) { 280 @Override public ImmutableList<V> get(@Nullable K key) { 282 ImmutableList<V> list = (ImmutableList<V>) map.get(key); 283 return (list == null) ? ImmutableList.<V>of() : list; 318 @Override public ImmutableList<V> removeAll(Object key) { 327 @Override public ImmutableList<V> replaceValues [all...] |
/development/tools/idegen/src/com/android/idegen/ |
DirectorySearch.java | 20 import com.google.common.collect.ImmutableList; 132 public static ImmutableList<File> findSourceDirs(File file) { 135 return ImmutableList.of(); 140 ImmutableList.Builder<File> builder = ImmutableList.builder(); 151 ImmutableList<File> dirs = findSourceDirs(child); 165 public static ImmutableList<File> findExcludeDirs(File file) { 168 return ImmutableList.of(); 173 ImmutableList.Builder<File> builder = ImmutableList.builder() [all...] |
FrameworkModule.java | 20 import com.google.common.collect.ImmutableList; 43 ImmutableList<File> intermediateSrcDirs = DirectorySearch.findSourceDirs(intermediates);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
ListGenerators.java | 22 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.copyOf(elements) [all...] |
/external/guava/guava-tests/test/com/google/common/net/ |
HostSpecifierTest.java | 19 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(
|
InternetDomainNameTest.java | 22 import com.google.common.collect.ImmutableList; 61 private static final List<String> VALID_NAME = ImmutableList.of( 79 private static final List<String> INVALID_NAME = ImmutableList.of( 102 private static final List<String> PS = ImmutableList.of( 115 private static final List<String> NO_PS = ImmutableList.of( 118 private static final List<String> NON_PS = ImmutableList.of( 124 private static final List<String> TOP_PRIVATE_DOMAIN = ImmutableList.of( 127 private static final List<String> UNDER_PRIVATE_DOMAIN = ImmutableList.of( 130 private static final List<String> VALID_IP_ADDRS = ImmutableList.of( 133 private static final List<String> INVALID_IP_ADDRS = ImmutableList.of [all...] |
/external/guava/guava-testlib/src/com/google/common/testing/ |
RelationshipTester.java | 22 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);
|
/external/guava/guava-tests/test/com/google/common/hash/ |
HashingTest.java | 19 import com.google.common.collect.ImmutableList; 124 Hashing.combineOrdered(ImmutableList.of(HashCodes.fromInt(32), HashCodes.fromLong(32L))); 133 assertEquals(hash32, Hashing.combineOrdered(ImmutableList.of(hash32))); 135 Hashing.combineOrdered(ImmutableList.of(hash32, hash32))); 137 Hashing.combineOrdered(ImmutableList.of(hash32, hash32, hash32))); 139 Hashing.combineOrdered(ImmutableList.of(hash31, hash32)).equals( 140 Hashing.combineOrdered(ImmutableList.of(hash32, hash31)))); 174 Hashing.combineUnordered(ImmutableList.of(HashCodes.fromInt(32), HashCodes.fromLong(32L))); 183 assertEquals(hash32, Hashing.combineUnordered(ImmutableList.of(hash32))); 184 assertEquals(HashCodes.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32))) [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
ForwardingCacheTest.java | 24 import com.google.common.collect.ImmutableList; 64 expect(mock.getAllPresent(ImmutableList.of("key"))) 68 forward.getAllPresent(ImmutableList.of("key"))); 80 mock.invalidateAll(ImmutableList.of("key")); 82 forward.invalidateAll(ImmutableList.of("key"));
|
/external/guava/guava-tests/test/com/google/common/base/ |
EquivalenceTest.java | 21 import com.google.common.collect.ImmutableList; 39 .addEquivalenceGroup(ImmutableList.<String>of()) 40 .addEquivalenceGroup(ImmutableList.of("a")) 41 .addEquivalenceGroup(ImmutableList.of("b")) 42 .addEquivalenceGroup(ImmutableList.of("a", "b"), ImmutableList.of("a", "b"))
|