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.lang.Iterable<Record<T>>
,java.util.Iterator<Record<T>>
,Records<T>
public class RecordsImpl<T> extends java.lang.Object implements Records<T>, java.lang.Cloneable
Implementation of theRecords
interface beingCloneable
.
-
-
Constructor Summary
Constructors Constructor Description RecordsImpl(java.util.Collection<Record<T>> aRecords)
Constructs theRecordsImpl
instance configured with the providedRecord
instances.RecordsImpl(Record<T>... aRecords)
Constructs theRecordsImpl
instance configured with the providedRecord
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
boolean
hasNext()
Record<T>
next()
void
remove()
-
-
-
Constructor Detail
-
RecordsImpl
public RecordsImpl(java.util.Collection<Record<T>> aRecords)
Constructs theRecordsImpl
instance configured with the providedRecord
instances.- Parameters:
aRecords
- TheCollection
with theRecord
instances to be contained in theRecordsImpl
.
-
RecordsImpl
@SafeVarargs public RecordsImpl(Record<T>... aRecords)
Constructs theRecordsImpl
instance configured with the providedRecord
instances.- Parameters:
aRecords
- The array with theRecord
instances to be contained in theRecordsImpl
.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T>
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
-