net.ranides.assira.collection.map
Class MapBiAdapterTT<K,V>

java.lang.Object
  extended by net.ranides.assira.collection.map.MapAdapter<K,VS,VT>
      extended by net.ranides.assira.collection.map.MapBiAdapter<K,V,V>
          extended by 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 Class Summary
 
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ę.
 
Method Summary
 
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 class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.ranides.assira.generic.CoFunction
inverse
 
Methods inherited from interface java.util.Map
equals, hashCode
 
Methods inherited from interface net.ranides.assira.generic.Function
apply
 

Constructor Detail

MapBiAdapterTT

public MapBiAdapterTT(Map<K,V> content)
Tworzy nowy adapter odwzorowujący podaną mapę.

Parameters:
content -


Copyright © 2013. All Rights Reserved.