Lines Matching refs:V2

941   public static <K, V1, V2> Map<K, V2> transformValues(
942 Map<K, V1> fromMap, final Function<? super V1, V2> function) {
944 EntryTransformer<K, V1, V2> transformer =
945 new EntryTransformer<K, V1, V2>() {
947 public V2 transformEntry(K key, V1 value) {
994 public static <K, V1, V2> SortedMap<K, V2> transformValues(
995 SortedMap<K, V1> fromMap, final Function<? super V1, V2> function) {
997 EntryTransformer<K, V1, V2> transformer =
998 new EntryTransformer<K, V1, V2>() {
1000 public V2 transformEntry(K key, V1 value) {
1058 public static <K, V1, V2> Map<K, V2> transformEntries(
1060 EntryTransformer<? super K, ? super V1, V2> transformer) {
1064 return new TransformedEntriesMap<K, V1, V2>(fromMap, transformer);
1120 public static <K, V1, V2> SortedMap<K, V2> transformEntries(
1122 EntryTransformer<? super K, ? super V1, V2> transformer) {
1123 return new TransformedEntriesSortedMap<K, V1, V2>(fromMap, transformer);
1133 * @param <V2> the value type of the output entry
1136 public interface EntryTransformer<K, V1, V2> {
1154 V2 transformEntry(@Nullable K key, @Nullable V1 value);
1157 static class TransformedEntriesMap<K, V1, V2>
1158 extends AbstractMap<K, V2> {
1160 final EntryTransformer<? super K, ? super V1, V2> transformer;
1164 EntryTransformer<? super K, ? super V1, V2> transformer) {
1179 @Override public V2 get(Object key) {
1188 @Override public V2 remove(Object key) {
1202 Set<Entry<K, V2>> entrySet;
1204 @Override public Set<Entry<K, V2>> entrySet() {
1205 Set<Entry<K, V2>> result = entrySet;
1207 entrySet = result = new EntrySet<K, V2>() {
1208 @Override Map<K, V2> map() {
1212 @Override public Iterator<Entry<K, V2>> iterator() {
1216 new Function<Entry<K, V1>, Entry<K, V2>>() {
1217 @Override public Entry<K, V2> apply(Entry<K, V1> entry) {
1230 Collection<V2> values;
1232 @Override public Collection<V2> values() {
1233 Collection<V2> result = values;
1235 return values = new Values<K, V2>() {
1236 @Override Map<K, V2> map() {
1245 static class TransformedEntriesSortedMap<K, V1, V2>
1246 extends TransformedEntriesMap<K, V1, V2> implements SortedMap<K, V2> {
1253 EntryTransformer<? super K, ? super V1, V2> transformer) {
1265 @Override public SortedMap<K, V2> headMap(K toKey) {
1273 @Override public SortedMap<K, V2> subMap(K fromKey, K toKey) {
1278 @Override public SortedMap<K, V2> tailMap(K fromKey) {