Home
last modified time | relevance | path

Searched refs:keyFunction (Results 1 – 25 of 37) sorted by relevance

12

/external/guava/guava/src/com/google/common/collect/
DCollectCollectors.java31 Function<? super T, ? extends K> keyFunction, in toImmutableBiMap() argument
33 checkNotNull(keyFunction); in toImmutableBiMap()
37 (builder, input) -> builder.put(keyFunction.apply(input), valueFunction.apply(input)), in toImmutableBiMap()
55 Function<? super T, ? extends K> keyFunction, in toImmutableMap() argument
57 checkNotNull(keyFunction); in toImmutableMap()
61 (builder, input) -> builder.put(keyFunction.apply(input), valueFunction.apply(input)), in toImmutableMap()
79 Function<? super T, ? extends K> keyFunction, in toImmutableSortedMap() argument
82 checkNotNull(keyFunction); in toImmutableSortedMap()
90 (builder, input) -> builder.put(keyFunction.apply(input), valueFunction.apply(input)), in toImmutableSortedMap()
124 Function<? super T, Range<K>> keyFunction, in toImmutableRangeMap() argument
[all …]
DSortedLists.java198 Function<? super E, K> keyFunction, in binarySearch() argument
203 list, keyFunction, key, Ordering.natural(), presentBehavior, absentBehavior); in binarySearch()
215 Function<? super E, K> keyFunction, in binarySearch() argument
221 Lists.transform(list, keyFunction), key, keyComparator, presentBehavior, absentBehavior); in binarySearch()
DImmutableBiMapFauxverideShim.java43 Function<? super T, ? extends K> keyFunction, in toImmutableMap() argument
58 Function<? super T, ? extends K> keyFunction, in toImmutableMap() argument
DImmutableListMultimap.java84 Function<? super T, ? extends K> keyFunction, in toImmutableListMultimap() argument
86 checkNotNull(keyFunction, "keyFunction"); in toImmutableListMultimap()
90 (builder, t) -> builder.put(keyFunction.apply(t), valueFunction.apply(t)), in toImmutableListMultimap()
128 Function<? super T, ? extends K> keyFunction, in flatteningToImmutableListMultimap() argument
130 checkNotNull(keyFunction); in flatteningToImmutableListMultimap()
134 input -> checkNotNull(keyFunction.apply(input)), in flatteningToImmutableListMultimap()
DImmutableSortedMapFauxverideShim.java43 Function<? super T, ? extends K> keyFunction, in toImmutableMap() argument
58 Function<? super T, ? extends K> keyFunction, in toImmutableMap() argument
DImmutableSetMultimap.java87 Function<? super T, ? extends K> keyFunction, in toImmutableSetMultimap() argument
89 checkNotNull(keyFunction, "keyFunction"); in toImmutableSetMultimap()
93 (builder, t) -> builder.put(keyFunction.apply(t), valueFunction.apply(t)), in toImmutableSetMultimap()
140 Function<? super T, ? extends K> keyFunction, in flatteningToImmutableSetMultimap() argument
142 checkNotNull(keyFunction); in flatteningToImmutableSetMultimap()
146 input -> checkNotNull(keyFunction.apply(input)), in flatteningToImmutableSetMultimap()
DFluentIterable.java718 public final <K> ImmutableListMultimap<K, E> index(Function<? super E, K> keyFunction) {
719 return Multimaps.index(getDelegate(), keyFunction);
752 public final <K> ImmutableMap<K, E> uniqueIndex(Function<? super E, K> keyFunction) {
753 return Maps.uniqueIndex(getDelegate(), keyFunction);
DMultimaps.java108 java.util.function.Function<? super T, ? extends K> keyFunction, in toMultimap() argument
111 checkNotNull(keyFunction); in toMultimap()
116 (multimap, input) -> multimap.put(keyFunction.apply(input), valueFunction.apply(input)), in toMultimap()
158 java.util.function.Function<? super T, ? extends K> keyFunction, in flatteningToMultimap() argument
161 checkNotNull(keyFunction); in flatteningToMultimap()
167 K key = keyFunction.apply(input); in flatteningToMultimap()
1630 Iterable<V> values, Function<? super V, K> keyFunction) {
1631 return index(values.iterator(), keyFunction);
1671 Iterator<V> values, Function<? super V, K> keyFunction) {
1672 checkNotNull(keyFunction);
[all …]
DImmutableSortedMap.java77 Function<? super T, ? extends K> keyFunction, in toImmutableSortedMap() argument
79 return CollectCollectors.toImmutableSortedMap(comparator, keyFunction, valueFunction); in toImmutableSortedMap()
95 Function<? super T, ? extends K> keyFunction, in toImmutableSortedMap() argument
99 checkNotNull(keyFunction); in toImmutableSortedMap()
104 keyFunction, valueFunction, mergeFunction, () -> new TreeMap<K, V>(comparator)), in toImmutableSortedMap()
DImmutableMap.java81 Function<? super T, ? extends K> keyFunction, in toImmutableMap() argument
83 return CollectCollectors.toImmutableMap(keyFunction, valueFunction); in toImmutableMap()
97 Function<? super T, ? extends K> keyFunction, in toImmutableMap() argument
100 checkNotNull(keyFunction); in toImmutableMap()
104 Collectors.toMap(keyFunction, valueFunction, mergeFunction, LinkedHashMap::new), in toImmutableMap()
DImmutableBiMap.java57 Function<? super T, ? extends K> keyFunction, in toImmutableBiMap() argument
59 return CollectCollectors.toImmutableBiMap(keyFunction, valueFunction); in toImmutableBiMap()
DMaps.java107 static <K> Function<Entry<K, ?>, K> keyFunction() { in keyFunction() method in Maps
220 java.util.function.Function<? super T, ? extends K> keyFunction,
222 checkNotNull(keyFunction);
231 K key = checkNotNull(keyFunction.apply(t), "Null key for input %s", t);
252 java.util.function.Function<? super T, ? extends K> keyFunction,
255 checkNotNull(keyFunction);
262 K key = checkNotNull(keyFunction.apply(t), "Null key for input %s", t);
1290 Iterable<V> values, Function<? super V, K> keyFunction) {
1292 return uniqueIndex(values.iterator(), keyFunction);
1326 Iterator<V> values, Function<? super V, K> keyFunction) {
[all …]
DImmutableRangeMap.java60 Function<? super T, Range<K>> keyFunction, in toImmutableRangeMap() argument
62 return CollectCollectors.toImmutableRangeMap(keyFunction, valueFunction); in toImmutableRangeMap()
DOrdering.java453 return onResultOf(Maps.<T2>keyFunction()); in onKeys()
/external/guava/android/guava/src/com/google/common/collect/
DSortedLists.java198 Function<? super E, K> keyFunction, in binarySearch() argument
203 list, keyFunction, key, Ordering.natural(), presentBehavior, absentBehavior); in binarySearch()
215 Function<? super E, K> keyFunction, in binarySearch() argument
221 Lists.transform(list, keyFunction), key, keyComparator, presentBehavior, absentBehavior); in binarySearch()
DFluentIterable.java724 public final <K> ImmutableListMultimap<K, E> index(Function<? super E, K> keyFunction) {
725 return Multimaps.index(getDelegate(), keyFunction);
760 public final <K> ImmutableMap<K, E> uniqueIndex(Function<? super E, K> keyFunction) {
761 return Maps.uniqueIndex(getDelegate(), keyFunction);
DMultimaps.java1518 Iterable<V> values, Function<? super V, K> keyFunction) {
1519 return index(values.iterator(), keyFunction);
1559 Iterator<V> values, Function<? super V, K> keyFunction) {
1560 checkNotNull(keyFunction);
1565 builder.put(keyFunction.apply(value), value);
DMaps.java102 static <K> Function<Entry<K, ?>, K> keyFunction() { in keyFunction() method in Maps
1164 Iterable<V> values, Function<? super V, K> keyFunction) {
1166 return uniqueIndex(values.iterator(), keyFunction);
1200 Iterator<V> values, Function<? super V, K> keyFunction) {
1201 checkNotNull(keyFunction);
1205 builder.put(keyFunction.apply(value), value);
2111 return compose(keyPredicate, Maps.<K>keyFunction());
DOrdering.java453 return onResultOf(Maps.<T2>keyFunction()); in onKeys()
DTreeRangeMap.java616 return removeEntryIf(compose(not(in(c)), Maps.<Range<K>>keyFunction()));
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableSortedMap.java71 Function<? super T, ? extends K> keyFunction, in toImmutableSortedMap() argument
73 return CollectCollectors.toImmutableSortedMap(comparator, keyFunction, valueFunction); in toImmutableSortedMap()
78 Function<? super T, ? extends K> keyFunction, in toImmutableSortedMap() argument
82 checkNotNull(keyFunction); in toImmutableSortedMap()
87 keyFunction, valueFunction, mergeFunction, () -> new TreeMap<K, V>(comparator)), in toImmutableSortedMap()
DImmutableMap.java76 Function<? super T, ? extends K> keyFunction,
78 return CollectCollectors.toImmutableMap(keyFunction, valueFunction);
82 Function<? super T, ? extends K> keyFunction,
85 checkNotNull(keyFunction);
89 Collectors.toMap(keyFunction, valueFunction, mergeFunction, LinkedHashMap::new),
DImmutableBiMap.java35 Function<? super T, ? extends K> keyFunction, in toImmutableBiMap() argument
37 return CollectCollectors.toImmutableBiMap(keyFunction, valueFunction); in toImmutableBiMap()
/external/clang/lib/CodeGen/
DCGVTables.cpp733 const CXXMethodDecl *keyFunction = Context.getCurrentKeyFunction(RD); in getVTableLinkage() local
734 if (keyFunction && !RD->hasAttr<DLLImportAttr>()) { in getVTableLinkage()
738 if (keyFunction->hasBody(def)) in getVTableLinkage()
739 keyFunction = cast<CXXMethodDecl>(def); in getVTableLinkage()
741 switch (keyFunction->getTemplateSpecializationKind()) { in getVTableLinkage()
750 if (keyFunction->isInlined()) in getVTableLinkage()
865 const CXXMethodDecl *keyFunction = CGM.getContext().getCurrentKeyFunction(RD); in isVTableExternal() local
866 if (!keyFunction) in isVTableExternal()
871 return !keyFunction->hasBody(); in isVTableExternal()
/external/llvm-project/clang/lib/CodeGen/
DCGVTables.cpp1014 const CXXMethodDecl *keyFunction = Context.getCurrentKeyFunction(RD); in getVTableLinkage() local
1015 if (keyFunction && !RD->hasAttr<DLLImportAttr>()) { in getVTableLinkage()
1019 if (keyFunction->hasBody(def)) in getVTableLinkage()
1020 keyFunction = cast<CXXMethodDecl>(def); in getVTableLinkage()
1022 switch (keyFunction->getTemplateSpecializationKind()) { in getVTableLinkage()
1032 if (keyFunction->isInlined()) in getVTableLinkage()
1147 const CXXMethodDecl *keyFunction = CGM.getContext().getCurrentKeyFunction(RD); in isVTableExternal() local
1148 if (!keyFunction) in isVTableExternal()
1153 return !keyFunction->hasBody(); in isVTableExternal()

12