faa.tg.util.adapter
Class Adapters.AdaptedCollection<F,T>

java.lang.Object
  extended by java.util.AbstractCollection<T>
      extended by faa.tg.util.adapter.Adapters.AdaptedCollection<F,T>
All Implemented Interfaces:
java.lang.Iterable<T>, java.util.Collection<T>
Enclosing class:
Adapters

private static final class Adapters.AdaptedCollection<F,T>
extends java.util.AbstractCollection<T>


Field Summary
private  Adapter<? super F,? extends T> adapter
           
private  java.util.Collection<? extends F> source
           
 
Constructor Summary
Adapters.AdaptedCollection(java.util.Collection<? extends F> source, Adapter<? super F,? extends T> adapter)
           
 
Method Summary
 java.util.Iterator<T> iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

adapter

private final Adapter<? super F,? extends T> adapter

source

private final java.util.Collection<? extends F> source
Constructor Detail

Adapters.AdaptedCollection

public Adapters.AdaptedCollection(java.util.Collection<? extends F> source,
                                  Adapter<? super F,? extends T> adapter)
Method Detail

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T>
Specified by:
iterator in interface java.util.Collection<T>
Specified by:
iterator in class java.util.AbstractCollection<T>

size

public int size()
Specified by:
size in interface java.util.Collection<T>
Specified by:
size in class java.util.AbstractCollection<T>