Package csv.mapper
Class AbstractMappingCollection
java.lang.Object
csv.mapper.AbstractMappingCollection
- All Implemented Interfaces:
MappingCollection,Iterable<TypeConverter>
- Direct Known Subclasses:
StringMappings
Implements basic functionality to define a mapping collection.
- Author:
- ralph
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(TypeConverter converter) Add another converter to this collection.protected abstract voidinit()Override this method to init your collection.iterator()voidremove(TypeConverter converter) Remove a converter from this collection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
collection
-
-
Constructor Details
-
AbstractMappingCollection
public AbstractMappingCollection()Constructor.
-
-
Method Details
-
init
protected abstract void init()Override this method to init your collection. -
add
Add another converter to this collection.- Parameters:
converter- converter to be added
-
remove
Remove a converter from this collection.- Parameters:
converter- converter to be removed
-
iterator
- Specified by:
iteratorin interfaceIterable<TypeConverter>
-