org.omnaest.utils.structure.collection.adapter
Class CollectionToCollectionAdapter<FROM,TO>
java.lang.Object
org.omnaest.utils.structure.collection.CollectionAbstract<TO>
org.omnaest.utils.structure.collection.adapter.CollectionToCollectionAdapterBase<FROM,TO>
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
CollectionToCollectionAdapter
public CollectionToCollectionAdapter(Collection<FROM> collection,
ElementBidirectionalConverter<FROM,TO> elementBidirectionalConverter)
- Parameters:
collection - elementBidirectionalConverter - - See Also:
CollectionToCollectionAdapter
getCollection
protected Collection<FROM> getCollection()
- Specified by:
getCollection in class CollectionToCollectionAdapterBase<FROM,TO>
Copyright © 2013. All Rights Reserved.