Home
last modified time | relevance | path

Searched refs:Collection (Results 1 – 25 of 797) sorted by relevance

12345678910>>...32

/external/protobuf/src/google/protobuf/stubs/
Dmap_util.h72 template <class Collection>
73 const typename Collection::value_type::second_type&
74 FindOrDie(const Collection& collection,
75 const typename Collection::value_type::first_type& key) {
76 typename Collection::const_iterator it = collection.find(key);
82 template <class Collection>
83 typename Collection::value_type::second_type&
84 FindOrDie(Collection& collection, // NOLINT
85 const typename Collection::value_type::first_type& key) {
86 typename Collection::iterator it = collection.find(key);
[all …]
Dmap-util.h45 template <class Collection>
46 const typename Collection::value_type::second_type&
47 FindWithDefault(const Collection& collection, in FindWithDefault()
48 const typename Collection::value_type::first_type& key, in FindWithDefault()
49 const typename Collection::value_type::second_type& value) { in FindWithDefault()
50 typename Collection::const_iterator it = collection.find(key); in FindWithDefault()
60 template <class Collection>
61 const typename Collection::value_type::second_type*
62 FindOrNull(const Collection& collection, in FindOrNull()
63 const typename Collection::value_type::first_type& key) { in FindOrNull()
[all …]
/external/ceres-solver/internal/ceres/
Dmap_util.h57 template <class Collection>
58 const typename Collection::value_type::second_type&
59 FindOrDie(const Collection& collection, in FindOrDie()
60 const typename Collection::value_type::first_type& key) { in FindOrDie()
61 typename Collection::const_iterator it = collection.find(key); in FindOrDie()
69 template <class Collection>
70 const typename Collection::value_type::second_type&
71 FindWithDefault(const Collection& collection, in FindWithDefault()
72 const typename Collection::value_type::first_type& key, in FindWithDefault()
73 const typename Collection::value_type::second_type& value) { in FindWithDefault()
[all …]
/external/guava/guava/src/com/google/common/collect/
DFilteredEntryMultimap.java29 import java.util.Collection;
88 static <E> Collection<E> filterCollection( in filterCollection()
89 Collection<E> collection, Predicate<? super E> predicate) { in filterCollection()
103 public Collection<V> removeAll(@Nullable Object key) { in removeAll()
107 Collection<V> unmodifiableEmptyCollection() { in unmodifiableEmptyCollection()
120 public Collection<V> get(final K key) { in get()
125 Collection<Entry<K, V>> createEntries() { in createEntries()
130 Collection<V> createValues() { in createValues()
140 Map<K, Collection<V>> createAsMap() { in createAsMap()
149 boolean removeEntriesIf(Predicate<? super Entry<K, Collection<V>>> predicate) { in removeEntriesIf()
[all …]
DAbstractMapBasedMultimap.java29 import java.util.Collection;
110 private transient Map<K, Collection<V>> map;
120 protected AbstractMapBasedMultimap(Map<K, Collection<V>> map) { in AbstractMapBasedMultimap()
126 final void setMap(Map<K, Collection<V>> map) { in setMap()
129 for (Collection<V> values : map.values()) { in setMap()
140 Collection<V> createUnmodifiableEmptyCollection() { in createUnmodifiableEmptyCollection()
155 abstract Collection<V> createCollection(); in createCollection()
166 Collection<V> createCollection(@Nullable K key) { in createCollection()
170 Map<K, Collection<V>> backingMap() { in backingMap()
190 Collection<V> collection = map.get(key); in put()
[all …]
DMapConstraints.java25 import java.util.Collection;
209 private static <K, V> Entry<K, Collection<V>> constrainedAsMapEntry(
210 final Entry<K, Collection<V>> entry,
214 return new ForwardingMapEntry<K, Collection<V>>() {
215 @Override protected Entry<K, Collection<V>> delegate() {
218 @Override public Collection<V> getValue() {
243 private static <K, V> Set<Entry<K, Collection<V>>> constrainedAsMapEntries(
244 Set<Entry<K, Collection<V>>> entries,
261 private static <K, V> Collection<Entry<K, V>> constrainedEntries(
262 Collection<Entry<K, V>> entries,
[all …]
DAbstractMultimap.java24 import java.util.Collection;
46 for (Collection<V> collection : asMap().values()) { in containsValue()
57 Collection<V> collection = asMap().get(key); in containsEntry()
63 Collection<V> collection = asMap().get(key); in remove()
77 if (values instanceof Collection) { in putAll()
78 Collection<? extends V> valueCollection = (Collection<? extends V>) values; in putAll()
96 public Collection<V> replaceValues(@Nullable K key, Iterable<? extends V> values) { in replaceValues()
98 Collection<V> result = removeAll(key); in replaceValues()
103 private transient Collection<Entry<K, V>> entries;
106 public Collection<Entry<K, V>> entries() { in entries()
[all …]
DForwardingCollection.java22 import java.util.Collection;
49 implements Collection<E> {
55 @Override protected abstract Collection<E> delegate(); in delegate()
68 public boolean removeAll(Collection<?> collection) { in removeAll()
93 public boolean containsAll(Collection<?> collection) { in containsAll()
98 public boolean addAll(Collection<? extends E> collection) { in addAll()
103 public boolean retainAll(Collection<?> collection) { in retainAll()
140 protected boolean standardContainsAll(Collection<?> collection) { in standardContainsAll()
151 protected boolean standardAddAll(Collection<? extends E> collection) { in standardAddAll()
182 protected boolean standardRemoveAll(Collection<?> collection) { in standardRemoveAll()
[all …]
DMultimaps.java37 import java.util.Collection;
111 public static <K, V> Multimap<K, V> newMultimap(Map<K, Collection<V>> map, in newMultimap()
112 final Supplier<? extends Collection<V>> factory) { in newMultimap()
117 transient Supplier<? extends Collection<V>> factory;
119 CustomMultimap(Map<K, Collection<V>> map, in CustomMultimap()
120 Supplier<? extends Collection<V>> factory) { in CustomMultimap()
125 @Override protected Collection<V> createCollection() { in createCollection()
145 factory = (Supplier<? extends Collection<V>>) stream.readObject(); in readObject()
146 Map<K, Collection<V>> map = (Map<K, Collection<V>>) stream.readObject(); in readObject()
193 Map<K, Collection<V>> map, final Supplier<? extends List<V>> factory) { in newListMultimap()
[all …]
DSynchronized.java28 import java.util.Collection;
97 private static <E> Collection<E> collection( in collection()
98 Collection<E> collection, @Nullable Object mutex) { in collection()
103 extends SynchronizedObject implements Collection<E> {
105 Collection<E> delegate, @Nullable Object mutex) { in SynchronizedCollection()
110 @Override Collection<E> delegate() { in delegate()
111 return (Collection<E>) super.delegate(); in delegate()
122 public boolean addAll(Collection<? extends E> c) { in addAll()
143 public boolean containsAll(Collection<?> c) { in containsAll()
169 public boolean removeAll(Collection<?> c) { in removeAll()
[all …]
DTreeMultimap.java27 import java.util.Collection;
121 super(new TreeMap<K, Collection<V>>(keyComparator)); in TreeMultimap()
146 Collection<V> createCollection(@Nullable K key) { in createCollection()
172 SortedMap<K, Collection<V>> backingMap() { in backingMap()
173 return (SortedMap<K, Collection<V>>) super.backingMap(); in backingMap()
185 Collection<V> unmodifiableCollectionSubclass(Collection<V> collection) { in unmodifiableCollectionSubclass()
190 Collection<V> wrapCollection(K key, Collection<V> collection) { in wrapCollection()
223 public SortedMap<K, Collection<V>> asMap() { in asMap()
224 return (SortedMap<K, Collection<V>>) super.asMap(); in asMap()
228 SortedMap<K, Collection<V>> createAsMap() { in createAsMap()
[all …]
DCollections2.java39 import java.util.Collection;
89 public static <E> Collection<E> filter( in filter()
90 Collection<E> unfiltered, Predicate<? super E> predicate) { in filter()
107 Collection<?> collection, @Nullable Object object) { in safeContains()
123 static boolean safeRemove(Collection<?> collection, @Nullable Object object) { in safeRemove()
135 final Collection<E> unfiltered;
138 FilteredCollection(Collection<E> unfiltered, in FilteredCollection()
157 public boolean addAll(Collection<? extends E> collection) { in addAll()
180 public boolean containsAll(Collection<?> collection) { in containsAll()
200 public boolean removeAll(final Collection<?> collection) { in removeAll()
[all …]
DFilteredKeyMultimap.java23 import java.util.Collection;
61 for (Collection<V> collection : asMap().values()) { in size()
78 public Collection<V> removeAll(Object key) { in removeAll()
82 Collection<V> unmodifiableEmptyCollection() { in unmodifiableEmptyCollection()
101 public Collection<V> get(K key) { in get()
124 public boolean addAll(Collection<? extends V> collection) { in addAll()
149 public boolean addAll(Collection<? extends V> collection) { in addAll()
161 public boolean addAll(int index, Collection<? extends V> elements) { in addAll()
179 Collection<Entry<K, V>> createEntries() { in createEntries()
185 protected Collection<Entry<K, V>> delegate() { in delegate()
[all …]
DIterables.java30 import java.util.Collection;
108 return (iterable instanceof Collection) in size()
109 ? ((Collection<?>) iterable).size() in size()
118 if (iterable instanceof Collection) { in contains()
119 Collection<?> collection = (Collection<?>) iterable; in contains()
137 Iterable<?> removeFrom, Collection<?> elementsToRemove) { in removeAll()
138 return (removeFrom instanceof Collection) in removeAll()
139 ? ((Collection<?>) removeFrom).removeAll(checkNotNull(elementsToRemove)) in removeAll()
155 Iterable<?> removeFrom, Collection<?> elementsToRetain) { in retainAll()
156 return (removeFrom instanceof Collection) in retainAll()
[all …]
DConstraints.java25 import java.util.Collection;
88 public static <E> Collection<E> constrainedCollection( in constrainedCollection()
89 Collection<E> collection, Constraint<? super E> constraint) { in constrainedCollection()
95 private final Collection<E> delegate;
99 Collection<E> delegate, Constraint<? super E> constraint) { in ConstrainedCollection()
103 @Override protected Collection<E> delegate() { in delegate()
110 @Override public boolean addAll(Collection<? extends E> elements) { in addAll()
148 @Override public boolean addAll(Collection<? extends E> elements) { in addAll()
197 @Override public boolean addAll(Collection<? extends E> elements) { in addAll()
244 @Override public boolean addAll(Collection<? extends E> elements) { in addAll()
[all …]
DAbstractSortedKeySortedSetMultimap.java21 import java.util.Collection;
37 AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map) { in AbstractSortedKeySortedSetMultimap()
42 public SortedMap<K, Collection<V>> asMap() { in asMap()
43 return (SortedMap<K, Collection<V>>) super.asMap(); in asMap()
47 SortedMap<K, Collection<V>> backingMap() { in backingMap()
48 return (SortedMap<K, Collection<V>>) super.backingMap(); in backingMap()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DAbstractMapBasedMultimap.java28 import java.util.Collection;
109 private transient Map<K, Collection<V>> map;
119 protected AbstractMapBasedMultimap(Map<K, Collection<V>> map) { in AbstractMapBasedMultimap()
125 final void setMap(Map<K, Collection<V>> map) { in setMap()
128 for (Collection<V> values : map.values()) { in setMap()
139 Collection<V> createUnmodifiableEmptyCollection() { in createUnmodifiableEmptyCollection()
154 abstract Collection<V> createCollection(); in createCollection()
165 Collection<V> createCollection(@Nullable K key) { in createCollection()
169 Map<K, Collection<V>> backingMap() { in backingMap()
189 Collection<V> collection = map.get(key); in put()
[all …]
DSynchronized.java25 import java.util.Collection;
84 private static <E> Collection<E> collection( in collection()
85 Collection<E> collection, @Nullable Object mutex) { in collection()
90 extends SynchronizedObject implements Collection<E> {
92 Collection<E> delegate, @Nullable Object mutex) { in SynchronizedCollection()
97 @Override Collection<E> delegate() { in delegate()
98 return (Collection<E>) super.delegate(); in delegate()
109 public boolean addAll(Collection<? extends E> c) { in addAll()
130 public boolean containsAll(Collection<?> c) { in containsAll()
156 public boolean removeAll(Collection<?> c) { in removeAll()
[all …]
DMultimaps.java33 import java.util.Collection;
107 public static <K, V> Multimap<K, V> newMultimap(Map<K, Collection<V>> map, in newMultimap()
108 final Supplier<? extends Collection<V>> factory) { in newMultimap()
113 transient Supplier<? extends Collection<V>> factory;
115 CustomMultimap(Map<K, Collection<V>> map, in CustomMultimap()
116 Supplier<? extends Collection<V>> factory) { in CustomMultimap()
121 @Override protected Collection<V> createCollection() { in createCollection()
168 Map<K, Collection<V>> map, final Supplier<? extends List<V>> factory) { in newListMultimap()
176 CustomListMultimap(Map<K, Collection<V>> map, in CustomListMultimap()
225 Map<K, Collection<V>> map, final Supplier<? extends Set<V>> factory) { in newSetMultimap()
[all …]
DIterables.java29 import java.util.Collection;
106 return (iterable instanceof Collection) in size()
107 ? ((Collection<?>) iterable).size() in size()
116 if (iterable instanceof Collection) { in contains()
117 Collection<?> collection = (Collection<?>) iterable; in contains()
135 Iterable<?> removeFrom, Collection<?> elementsToRemove) { in removeAll()
136 return (removeFrom instanceof Collection) in removeAll()
137 ? ((Collection<?>) removeFrom).removeAll(checkNotNull(elementsToRemove)) in removeAll()
153 Iterable<?> removeFrom, Collection<?> elementsToRetain) { in retainAll()
154 return (removeFrom instanceof Collection) in retainAll()
[all …]
/external/lldb/include/lldb/Core/
DRangeMap.h176 typedef llvm::SmallVector<Entry, N> Collection; typedef
215 typename Collection::const_iterator pos, end, prev; in IsSorted()
236 typename Collection::iterator pos; in CombineConsecutiveRanges()
237 typename Collection::iterator end; in CombineConsecutiveRanges()
238 typename Collection::iterator prev; in CombineConsecutiveRanges()
255 Collection minimal_ranges; in CombineConsecutiveRanges()
301 typename Collection::iterator pos, end; in Slide()
370 typename Collection::const_iterator begin = m_entries.begin(); in FindEntryIndexThatContains()
371 typename Collection::const_iterator end = m_entries.end(); in FindEntryIndexThatContains()
372 … typename Collection::const_iterator pos = std::lower_bound (begin, end, entry, BaseLessThan); in FindEntryIndexThatContains()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DTypeListPool.java41 import java.util.Collection;
44 public class TypeListPool extends BaseNullableOffsetPool<Key<? extends Collection<? extends CharSeq…
45 … implements TypeListSection<CharSequence, Key<? extends Collection<? extends CharSequence>>> {
52 public void intern(@Nonnull Collection<? extends CharSequence> types) { in intern()
54 …Key<? extends Collection<? extends CharSequence>> key = new Key<Collection<? extends CharSequence>… in intern()
65 …public Collection<? extends CharSequence> getTypes(Key<? extends Collection<? extends CharSequence… in getTypes()
72 …@Override public int getNullableItemOffset(@Nullable Key<? extends Collection<? extends CharSequen… in getNullableItemOffset()
80 public static class Key<TypeCollection extends Collection<? extends CharSequence>>
81 implements Comparable<Key<? extends Collection<? extends CharSequence>>> {
100 Key<? extends Collection<? extends CharSequence>> other = in equals()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingCollectionTest.java30 import java.util.Collection;
43 private final Collection<T> backingCollection;
45 StandardImplForwardingCollection(Collection<T> backingCollection) { in StandardImplForwardingCollection()
49 @Override protected Collection<T> delegate() { in delegate()
53 @Override public boolean addAll(Collection<? extends T> collection) { in addAll()
65 @Override public boolean containsAll(Collection<?> collection) { in containsAll()
73 @Override public boolean removeAll(Collection<?> collection) { in removeAll()
77 @Override public boolean retainAll(Collection<?> collection) { in retainAll()
94 private static final Collection<String> EMPTY_COLLECTION =
97 private Collection<String> forward;
[all …]
/external/smali/util/src/main/java/org/jf/util/
DCollectionUtils.java63 …public static <T extends Comparable<? super T>> int compareAsList(@Nonnull Collection<? extends T>… in compareAsList()
64 … @Nonnull Collection<? extends T> list2) { in compareAsList()
115 @Nonnull Collection<? extends T> list1, in compareAsList()
116 @Nonnull Collection<? extends T> list2) { in compareAsList()
128 public static <T> Comparator<Collection<? extends T>> listComparator( in listComparator()
130 return new Comparator<Collection<? extends T>>() { in listComparator()
132 public int compare(Collection<? extends T> list1, Collection<? extends T> list2) { in listComparator()
161 …private static <T> SortedSet<? extends T> toNaturalSortedSet(@Nonnull Collection<? extends T> coll…
170 … @Nonnull Collection<? extends T> collection) {
182 public static <T> Comparator<Collection<? extends T>> setComparator(
[all …]
/external/guava/guava-tests/benchmark/com/google/common/collect/
DMapBenchmark.java26 import java.util.Collection;
44 @Override Map<Element, Element> create(Collection<Element> keys) { in create()
53 @Override Map<Element, Element> create(Collection<Element> keys) { in create()
62 @Override Map<Element, Element> create(Collection<Element> keys) { in create()
67 @Override Map<Element, Element> create(Collection<Element> keys) { in create()
72 @Override Map<Element, Element> create(Collection<Element> keys) { in create()
81 @Override Map<Element, Element> create(Collection<Element> keys) { in create()
91 @Override Map<Element, Element> create(Collection<Element> keys) { in create()
101 @Override Map<Element, Element> create(Collection<Element> keys) { in create()
112 @Override Map<Element, Element> create(Collection<Element> keys) { in create()
[all …]

12345678910>>...32