org.omnaest.utils.structure.collection.adapter
Class CollectionToCollectionAdapterBase<FROM,TO>
java.lang.Object
org.omnaest.utils.structure.collection.CollectionAbstract<TO>
org.omnaest.utils.structure.collection.adapter.CollectionToCollectionAdapterBase<FROM,TO>
- Type Parameters:
FROM - TO -
- All Implemented Interfaces:
- Serializable, Iterable<TO>, Collection<TO>
- Direct Known Subclasses:
- CollectionToCollectionAdapter
public abstract class CollectionToCollectionAdapterBase<FROM,TO>
- extends CollectionAbstract<TO>
Base implementation of an CollectionToCollectionAdapter
- Author:
- Omnaest
- See Also:
- Serialized Form
elementBidirectionalConverter
protected final ElementBidirectionalConverter<FROM,TO> elementBidirectionalConverter
CollectionToCollectionAdapterBase
protected CollectionToCollectionAdapterBase(ElementBidirectionalConverter<FROM,TO> elementBidirectionalConverter)
- Parameters:
elementBidirectionalConverter - - See Also:
CollectionToCollectionAdapterBase
size
public int size()
contains
public boolean contains(Object o)
iterator
public Iterator<TO> iterator()
add
public boolean add(TO element)
remove
public boolean remove(Object o)
getCollection
protected abstract Collection<FROM> getCollection()
toString
public String toString()
- Overrides:
toString in class CollectionAbstract<TO>
Copyright © 2013. All Rights Reserved.