org.omnaest.utils.structure.collection.adapter
Class CollectionToCollectionAdapterBase<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>
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

Field Summary
protected  ElementBidirectionalConverter<FROM,TO> elementBidirectionalConverter
           
 
Constructor Summary
protected CollectionToCollectionAdapterBase(ElementBidirectionalConverter<FROM,TO> elementBidirectionalConverter)
           
 
Method Summary
 boolean add(TO element)
           
 boolean contains(Object o)
           
protected abstract  Collection<FROM> getCollection()
           
 Iterator<TO> iterator()
           
 boolean remove(Object o)
           
 int size()
           
 String 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
 

Field Detail

elementBidirectionalConverter

protected final ElementBidirectionalConverter<FROM,TO> elementBidirectionalConverter
Constructor Detail

CollectionToCollectionAdapterBase

protected CollectionToCollectionAdapterBase(ElementBidirectionalConverter<FROM,TO> elementBidirectionalConverter)
Parameters:
elementBidirectionalConverter -
See Also:
CollectionToCollectionAdapterBase
Method Detail

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.