/external/protobuf/src/google/protobuf/stubs/ |
D | map_util.h | 72 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 …]
|
D | map-util.h | 45 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/ |
D | map_util.h | 57 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/ |
D | FilteredEntryMultimap.java | 29 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 …]
|
D | AbstractMapBasedMultimap.java | 29 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 …]
|
D | MapConstraints.java | 25 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 …]
|
D | AbstractMultimap.java | 24 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 …]
|
D | ForwardingCollection.java | 22 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 …]
|
D | Multimaps.java | 37 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 …]
|
D | TreeMultimap.java | 27 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 …]
|
D | Collections2.java | 39 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 …]
|
D | Constraints.java | 23 import java.util.Collection; 52 public static <E> Collection<E> constrainedCollection( in constrainedCollection() 53 Collection<E> collection, Constraint<? super E> constraint) { in constrainedCollection() 59 private final Collection<E> delegate; 63 Collection<E> delegate, Constraint<? super E> constraint) { in ConstrainedCollection() 67 @Override protected Collection<E> delegate() { in delegate() 74 @Override public boolean addAll(Collection<? extends E> elements) { in addAll() 112 @Override public boolean addAll(Collection<? extends E> elements) { in addAll() 161 @Override public boolean addAll(Collection<? extends E> elements) { in addAll() 208 @Override public boolean addAll(Collection<? extends E> elements) { in addAll() [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | AbstractMapBasedMultimap.java | 28 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 …]
|
D | Synchronized.java | 25 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 …]
|
D | Multimaps.java | 33 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 …]
|
D | Iterables.java | 29 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/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/ |
D | BundleCoverageImpl.java | 15 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 …]
|
D | PackageCoverageImpl.java | 14 import java.util.Collection; 27 private final Collection<IClassCoverage> classes; 29 private final Collection<ISourceFileCoverage> sourceFiles; 42 final Collection<IClassCoverage> classes, in PackageCoverageImpl() 43 final Collection<ISourceFileCoverage> sourceFiles) { in PackageCoverageImpl() 60 public Collection<IClassCoverage> getClasses() { in getClasses() 64 public Collection<ISourceFileCoverage> getSourceFiles() { in getSourceFiles()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
D | TypeListPool.java | 41 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/ |
D | ForwardingCollectionTest.java | 30 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/guice/extensions/grapher/src/com/google/inject/grapher/ |
D | TransitiveDependencyVisitor.java | 34 import java.util.Collection; 46 extends DefaultBindingTargetVisitor<Object, Collection<Key<?>>> { 48 private Collection<Key<?>> visitHasDependencies(HasDependencies hasDependencies) { in visitHasDependencies() 58 @Override public Collection<Key<?>> visit(ConstructorBinding<?> binding) { in visit() 62 @Override public Collection<Key<?>> visit(ConvertedConstantBinding<?> binding) { in visit() 66 @Override public Collection<Key<?>> visit(InstanceBinding<?> binding) { in visit() 70 @Override public Collection<Key<?>> visit(LinkedKeyBinding<?> binding) { in visit() 74 @Override public Collection<Key<?>> visit(ProviderBinding<?> binding) { in visit() 78 @Override public Collection<Key<?>> visit(ProviderInstanceBinding<?> binding) { in visit() 82 @Override public Collection<Key<?>> visit(ProviderKeyBinding<?> binding) { in visit() [all …]
|
D | DefaultEdgeCreator.java | 32 import java.util.Collection; 55 extends DefaultBindingTargetVisitor<Object, Collection<Edge>> { 65 private <T extends Binding<?> & HasDependencies> Collection<Edge> newDependencyEdges( in newDependencyEdges() 79 @Override public Collection<Edge> visit(ConstructorBinding<?> binding) { in visit() 88 @Override public Collection<Edge> visit(ConvertedConstantBinding<?> binding) { in visit() 100 @Override public Collection<Edge> visit(InstanceBinding<?> binding) { in visit() 114 @Override public Collection<Edge> visit(LinkedKeyBinding<?> binding) { in visit() 124 @Override public Collection<Edge> visit(ProviderBinding<?> binding) { in visit() 133 @Override public Collection<Edge> visit(ProviderInstanceBinding<?> binding) { in visit() 145 @Override public Collection<Edge> visit(ProviderKeyBinding<?> binding) { in visit() [all …]
|
/external/smali/util/src/main/java/org/jf/util/ |
D | CollectionUtils.java | 63 …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/testng/src/main/java/org/testng/xml/ |
D | SuiteGenerator.java | 5 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()
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | MapBenchmark.java | 26 import java.util.Collection; 45 @Override Map<Element, Element> create(Collection<Element> keys) { in create() 54 @Override Map<Element, Element> create(Collection<Element> keys) { in create() 63 @Override Map<Element, Element> create(Collection<Element> keys) { in create() 68 @Override Map<Element, Element> create(Collection<Element> keys) { in create() 73 @Override Map<Element, Element> create(Collection<Element> keys) { in create() 82 @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() 111 @Override Map<Element, Element> create(Collection<Element> keys) { in create() [all …]
|