net.ranides.assira.collection.list
Class ListBiAdapterTT<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by net.ranides.assira.collection.list.ListAdapter<T,S>
              extended by net.ranides.assira.collection.list.ListBiAdapter<T,T>
                  extended by net.ranides.assira.collection.list.ListBiAdapterTT<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, BiFunction<T,T>, CoFunction<T,T>, Function<T,T>

public abstract class ListBiAdapterTT<T>
extends ListBiAdapter<T,T>

Specjalizacja klasy ListBiAdapter, 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ć parametr T - w przypadku ListBiAdapter'a dedukcja nie zawsze jest możliwa.

Author:
ranides
See Also:
ListBiAdapter

Constructor Summary
ListBiAdapterTT(List<T> content)
          Tworzy nowy adapter odwzorowujący podaną listę.
ListBiAdapterTT(T[] content)
          Tworzy nowy adapter odwzorowujący podaną tablicę.
 
Method Summary
 
Methods inherited from class net.ranides.assira.collection.list.ListBiAdapter
add, remove, set
 
Methods inherited from class net.ranides.assira.collection.list.ListAdapter
apply, apply, get, inverse, size
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.ranides.assira.generic.Function
apply
 
Methods inherited from interface net.ranides.assira.generic.CoFunction
inverse
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ListBiAdapterTT

public ListBiAdapterTT(List<T> content)
Tworzy nowy adapter odwzorowujący podaną listę.

Parameters:
content -

ListBiAdapterTT

public ListBiAdapterTT(T[] content)
Tworzy nowy adapter odwzorowujący podaną tablicę.

Parameters:
content -


Copyright © 2013. All Rights Reserved.