Home
last modified time | relevance | path

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

12345678910>>...59

/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 …]
/external/tensorflow/tensorflow/core/lib/gtl/
Dmap_util.h34 template <class Collection>
35 const typename Collection::value_type::second_type* FindOrNull( in FindOrNull()
36 const Collection& collection, in FindOrNull()
37 const typename Collection::value_type::first_type& key) { in FindOrNull()
38 typename Collection::const_iterator it = collection.find(key); in FindOrNull()
46 template <class Collection>
47 typename Collection::value_type::second_type* FindOrNull( in FindOrNull()
48 Collection& collection, // NOLINT in FindOrNull()
49 const typename Collection::value_type::first_type& key) { in FindOrNull()
50 typename Collection::iterator it = collection.find(key); in FindOrNull()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Dmap_util.h33 template <class Collection>
34 const typename Collection::value_type::second_type& FindOrDie( in FindOrDie()
35 const Collection& collection, in FindOrDie()
36 const typename Collection::value_type::first_type& key) { in FindOrDie()
37 typename Collection::const_iterator it = collection.find(key); in FindOrDie()
43 template <class Collection>
44 typename Collection::value_type::second_type& FindOrDie( in FindOrDie()
45 Collection& collection, // NOLINT in FindOrDie()
46 const typename Collection::value_type::first_type& key) { in FindOrDie()
47 typename Collection::iterator it = collection.find(key); in FindOrDie()
[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;
112 private transient Map<K, Collection<V>> map;
122 protected AbstractMapBasedMultimap(Map<K, Collection<V>> map) { in AbstractMapBasedMultimap()
128 final void setMap(Map<K, Collection<V>> map) { in setMap()
131 for (Collection<V> values : map.values()) { in setMap()
142 Collection<V> createUnmodifiableEmptyCollection() { in createUnmodifiableEmptyCollection()
157 abstract Collection<V> createCollection(); in createCollection()
168 Collection<V> createCollection(@Nullable K key) { in createCollection()
172 Map<K, Collection<V>> backingMap() { in backingMap()
192 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 …]
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 …]
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 …]
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()
173 NavigableMap<K, Collection<V>> backingMap() { in backingMap()
174 return (NavigableMap<K, Collection<V>>) super.backingMap(); in backingMap()
188 Collection<V> unmodifiableCollectionSubclass(Collection<V> collection) { in unmodifiableCollectionSubclass()
194 Collection<V> wrapCollection(K key, Collection<V> collection) { in wrapCollection()
230 public NavigableMap<K, Collection<V>> asMap() { in asMap()
231 return (NavigableMap<K, Collection<V>>) super.asMap(); in asMap()
236 NavigableMap<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 …]
/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/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/
Dlinq_take.hpp38 template <class Collection>
39 linq_take_cursor<typename Collection::cursor>
41 const Collection& c, in take_get_cursor_()
46 return linq_take_cursor<typename Collection::cursor>(c.get_cursor(), n); in take_get_cursor_()
49 template <class Collection>
50 typename Collection::cursor
52 const Collection& c, in take_get_cursor_()
65 template <class Collection>
71 typename Collection::cursor::cursor_category>::value,
72 typename Collection::cursor,
[all …]
Dlinq.hpp217 template <class Collection>
220 typedef typename Collection::cursor::element_type
222 typedef typename Collection::cursor::reference_type
225 typedef cursor_iterator<typename Collection::cursor>
228 linq_driver(Collection c) : c(c) {} in linq_driver()
234 linq_driver< linq_groupby<Collection, KeyFn> > groupby(KeyFn fn) in groupby()
236 return linq_groupby<Collection, KeyFn>(c, std::move(fn) ); in groupby()
244 linq_driver< linq_select<Collection, Selector> > select(Selector sel) const { in select()
245 return linq_select<Collection, Selector>(c, std::move(sel) ); in select()
249 linq_driver< linq_select_many<Collection, Fn, detail::default_select_many_selector> >
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DMergeLists.java5 import java.util.Collection;
15 Collection<Collection<T>> source = new ArrayList<Collection<T>>();
26 public MergeLists<T> add(Collection<T> orderedItems) { in add()
43 public MergeLists<T> addAll(Collection<Collection<T>> collectionsOfOrderedItems) { in addAll()
44 for (Collection<T> orderedItems : collectionsOfOrderedItems) { in addAll()
53 for (Collection<T> sublist : source) { in merge()
65 Map<T, Collection<T>> reasons = new LinkedHashMap<T, Collection<T>>(); in merge()
80 public static <T> boolean hasConsistentOrder(Collection<T> a, Collection<T> b) { in hasConsistentOrder()
100 …public static <T> Collection<T> hasConsistentOrderWithEachOf(Collection<T> a, Collection<Collectio… in hasConsistentOrderWithEachOf()
101 for (Collection<T> b : bs) { in hasConsistentOrderWithEachOf()
[all …]
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/
DBundleCoverageImpl.java15 import java.util.Collection;
34 private final Collection<IPackageCoverage> packages;
45 final Collection<IPackageCoverage> packages) { in BundleCoverageImpl()
63 final Collection<IClassCoverage> classes, in BundleCoverageImpl()
64 final Collection<ISourceFileCoverage> sourcefiles) { in BundleCoverageImpl()
68 private static Collection<IPackageCoverage> groupByPackage( in groupByPackage()
69 final Collection<IClassCoverage> classes, in groupByPackage()
70 final Collection<ISourceFileCoverage> sourcefiles) { in groupByPackage()
71 …final Map<String, Collection<IClassCoverage>> classesByPackage = new HashMap<String, Collection<IC… in groupByPackage()
76 …final Map<String, Collection<ISourceFileCoverage>> sourceFilesByPackage = new HashMap<String, Coll… in groupByPackage()
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/sources/
Drx-iterate.hpp38 template<class Collection>
41 typedef rxu::decay_t<Collection> collection_type;
52 template<class Collection>
55 typedef rxu::decay_t<Collection> collection_type;
60 template<class Collection, class Coordination>
61 struct iterate : public source_base<rxu::value_type_t<iterate_traits<Collection>>>
63 typedef iterate<Collection, Coordination> this_type;
64 typedef iterate_traits<Collection> traits;
159 template<class Collection>
160 auto iterate(Collection c) in iterate()
[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/guice/extensions/grapher/src/com/google/inject/grapher/
DTransitiveDependencyVisitor.java33 import java.util.Collection;
44 extends DefaultBindingTargetVisitor<Object, Collection<Key<?>>> {
46 private Collection<Key<?>> visitHasDependencies(HasDependencies hasDependencies) { in visitHasDependencies()
57 public Collection<Key<?>> visit(ConstructorBinding<?> binding) { in visit()
62 public Collection<Key<?>> visit(ConvertedConstantBinding<?> binding) { in visit()
67 public Collection<Key<?>> visit(InstanceBinding<?> binding) { in visit()
72 public Collection<Key<?>> visit(LinkedKeyBinding<?> binding) { in visit()
77 public Collection<Key<?>> visit(ProviderBinding<?> binding) { in visit()
82 public Collection<Key<?>> visit(ProviderInstanceBinding<?> binding) { in visit()
87 public Collection<Key<?>> visit(ProviderKeyBinding<?> binding) { in visit()
[all …]
/external/testng/src/main/java/org/testng/xml/
DSuiteGenerator.java5 import java.util.Collection;
16 private static final Collection<String> EMPTY_CLASS_LIST= Collections.emptyList();
22 public static LaunchSuite createSuite(String projectName, Collection<String> packageNames, in createSuite()
23 Map<String, Collection<String>> classAndMethodNames, Collection<String> groupNames, in createSuite()
27 Collection<String> classes = classAndMethodNames != null ? classAndMethodNames.keySet() in createSuite()
58 Collection<String> packageNames, Collection<String> classNames, in createCustomizedSuite()
59 Collection<String> methodNames, Collection<String> groupNames, in createCustomizedSuite()

12345678910>>...59