org.omnaest.utils.structure.collection.adapter
Class CollectionToCollectionAdapter<FROM,TO>

java.lang.Object
  extended by org.omnaest.utils.structure.collection.CollectionAbstract<TO>
      extended by org.omnaest.utils.structure.collection.adapter.CollectionToCollectionAdapterBase<FROM,TO>
          extended by org.omnaest.utils.structure.collection.adapter.CollectionToCollectionAdapter<FROM,TO>
All Implemented Interfaces:
Serializable, Iterable<TO>, Collection<TO>
Direct Known Subclasses:
SetToSetAdapter

public class CollectionToCollectionAdapter<FROM,TO>
extends CollectionToCollectionAdapterBase<FROM,TO>

Adapter from one Collection with its specific type to an underlying Collection with another specific type using an ElementBidirectionalConverter instance to translate forth and back in types.

Author:
Omnaest
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.omnaest.utils.structure.collection.adapter.CollectionToCollectionAdapterBase
elementBidirectionalConverter
 
Constructor Summary
CollectionToCollectionAdapter(Collection<FROM> collection, ElementBidirectionalConverter<FROM,TO> elementBidirectionalConverter)
           
 
Method Summary
protected  Collection<FROM> getCollection()
           
 
Methods inherited from class org.omnaest.utils.structure.collection.adapter.CollectionToCollectionAdapterBase
add, contains, iterator, remove, size, toString
 
Methods inherited from class org.omnaest.utils.structure.collection.CollectionAbstract
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionToCollectionAdapter

public CollectionToCollectionAdapter(Collection<FROM> collection,
                                     ElementBidirectionalConverter<FROM,TO> elementBidirectionalConverter)
Parameters:
collection -
elementBidirectionalConverter -
See Also:
CollectionToCollectionAdapter
Method Detail

getCollection

protected Collection<FROM> getCollection()
Specified by:
getCollection in class CollectionToCollectionAdapterBase<FROM,TO>


Copyright © 2013. All Rights Reserved.