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.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 theRecord
interface beingCloneable
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecordImpl()
Constructs theRecordImpl
instance.RecordImpl(java.util.List<Field<T>> aFields)
Constructs a record with the given items.RecordImpl(Field<? extends T>... aFields)
Constructs theRecordImpl
instance configured with the providedField
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Field<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
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entry, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
RecordImpl
public RecordImpl()
Constructs theRecordImpl
instance.
-
RecordImpl
@SafeVarargs public RecordImpl(Field<? extends T>... aFields)
Constructs theRecordImpl
instance configured with the providedField
instances.- Parameters:
aFields
- TheField
instances to be contained in theRecordImpl
.
-
-