Package org.refcodes.tabular
Class RecordsImpl<T>
- java.lang.Object
-
- org.refcodes.tabular.RecordsImpl<T>
-
- Type Parameters:
T- The type managed by theRecords.
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Iterator<Record<? extends T>>,Records<T>
public class RecordsImpl<T> extends java.lang.Object implements Records<T>, java.lang.Cloneable
Implementation of theRecordsinterface beingCloneable.
-
-
Constructor Summary
Constructors Constructor Description RecordsImpl(java.util.Collection<Record<? extends T>> aRecords)Constructs theRecordsImplinstance configured with the providedRecordinstances.RecordsImpl(Record<? extends T>... aRecords)Constructs theRecordsImplinstance configured with the providedRecordinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()booleanhasNext()Record<? extends T>next()voidremove()
-
-
-
Constructor Detail
-
RecordsImpl
public RecordsImpl(java.util.Collection<Record<? extends T>> aRecords)
Constructs theRecordsImplinstance configured with the providedRecordinstances.- Parameters:
aRecords- TheCollectionwith theRecordinstances to be contained in theRecordsImpl.
-
RecordsImpl
@SafeVarargs public RecordsImpl(Record<? extends T>... aRecords)
Constructs theRecordsImplinstance configured with the providedRecordinstances.- Parameters:
aRecords- The array with theRecordinstances to be contained in theRecordsImpl.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<T>
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-