Package org.refcodes.tabular
Class RecordImpl<T>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,T>
-
- org.refcodes.tabular.RecordImpl<T>
-
- Type Parameters:
T- The type managed by theRecord.
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,T>,Record<T>
public class RecordImpl<T> extends java.util.LinkedHashMap<java.lang.String,T> implements Record<T>, java.lang.Cloneable
Implementation of theRecordinterface beingCloneable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecordImpl()Constructs theRecordImplinstance.RecordImpl(java.util.List<Field<T>> aFields)Constructs a record with the given items.RecordImpl(Field<? extends T>... aFields)Constructs theRecordImplinstance configured with the providedFieldinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Field<? extends T>>toFieldSet()-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
-
-
-
Constructor Detail
-
RecordImpl
public RecordImpl()
Constructs theRecordImplinstance.
-
RecordImpl
@SafeVarargs public RecordImpl(Field<? extends T>... aFields)
Constructs theRecordImplinstance configured with the providedFieldinstances.- Parameters:
aFields- TheFieldinstances to be contained in theRecordImpl.
-
-