HomeSort by relevance Sort by last modified time
    Searched refs:ImmutableList (Results 1 - 25 of 132) sorted by null

1 2 3 4 5 6

  /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/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...]
  /development/tools/idegen/src/com/android/idegen/
DirectorySearch.java 20 import com.google.common.collect.ImmutableList;
87 public static ImmutableList<File> findSourceDirs(File file) {
90 return ImmutableList.of();
95 ImmutableList.Builder<File> builder = ImmutableList.builder();
102 ImmutableList<File> dirs = findSourceDirs(child);
111 public static ImmutableList<File> findExcludeDirs(File file) {
114 return ImmutableList.of();
119 ImmutableList.Builder<File> builder = ImmutableList.builder()
    [all...]
AggregatedModule.java 20 import com.google.common.collect.ImmutableList;
95 protected ImmutableList<File> getSourceDirs() {
96 ImmutableList.Builder<File> builder = ImmutableList.builder();
105 protected ImmutableList<File> getExcludeDirs() {
106 ImmutableList.Builder<File> builder = ImmutableList.builder();
FrameworkModule.java 19 import com.google.common.collect.ImmutableList;
37 ImmutableList<File> intermediateSrcDirs = DirectorySearch.findSourceDirs(intermediates);
  /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...]
  /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"));
  /packages/apps/Contacts/src/com/android/contacts/model/
Contact.java 32 import com.google.common.collect.ImmutableList;
74 private ImmutableList<RawContact> mRawContacts;
75 private ImmutableList<StreamItemEntry> mStreamItems;
77 private ImmutableList<AccountType> mInvitableAccountTypes;
85 private ImmutableList<GroupMetaData> mGroups;
343 public ImmutableList<AccountType> getInvitableAccountTypes() {
347 public ImmutableList<RawContact> getRawContacts() {
356 public ImmutableList<StreamItemEntry> getStreamItems() {
450 public ImmutableList<GroupMetaData> getGroupMetaData() {
472 /* package */ void setRawContacts(ImmutableList<RawContact> rawContacts)
    [all...]
  /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"))

Completed in 830 milliseconds

1 2 3 4 5 6