net.ranides.assira.collection.map
Class MapBiAdapterTT<K,V>
java.lang.Object
net.ranides.assira.collection.map.MapAdapter<K,VS,VT>
net.ranides.assira.collection.map.MapBiAdapter<K,V,V>
net.ranides.assira.collection.map.MapBiAdapterTT<K,V>
- Type Parameters:
K - V -
- All Implemented Interfaces:
- Map<K,V>, CoFunction<Map.Entry<K,V>,V>, Function<V,Map.Entry<K,V>>
public abstract class MapBiAdapterTT<K,V>
- extends MapBiAdapter<K,V,V>
Specjalizacja klasy MapBiAdapter, przeznaczona do tworzenia adapterów,
które nie zmieniają klasy elementów. Oszczędza pisania odrobiny redundantnego kodu
(wystarczy klasę elementu podać tylko raz) oraz ułatwia pracę w Javie 7, gdzie
kompilator jest w stanie wydedukować parametry - w przypadku MapBiAdapter'a
dedukcja nie zawsze jest możliwa.
- Author:
- ranides
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
|
Constructor Summary |
MapBiAdapterTT(Map<K,V> content)
Tworzy nowy adapter odwzorowujący podaną mapę. |
| Methods inherited from class net.ranides.assira.collection.map.MapBiAdapter |
put |
| Methods inherited from class net.ranides.assira.collection.map.MapAdapter |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, toString, values |
| Methods inherited from interface net.ranides.assira.generic.Function |
apply |
MapBiAdapterTT
public MapBiAdapterTT(Map<K,V> content)
- Tworzy nowy adapter odwzorowujący podaną mapę.
- Parameters:
content -
Copyright © 2013. All Rights Reserved.