Package org.refcodes.tabular
Interface Record<T>
-
- Type Parameters:
T
- The type managed by theRecord
.
- All Superinterfaces:
java.util.Map<java.lang.String,T>
- All Known Implementing Classes:
RecordImpl
public interface Record<T> extends java.util.Map<java.lang.String,T>
ARecord
is aMap
containingField
data structures with support forColumn
definitions. TheField
instances can be managed with the functionality provided by aColumn
.A value can be retrieved from a
Record
by providing an accordingColumn
definition, which verifies the value type. Also values can be converted to and from the appropriate interchange and string formats by the accordingColumn
instances.In contrast to a
Row
, aRecord
relates the key (name) to its values. Similar to aRow
, aRecord
makes use ofColumn
instances (for example as provided by aHeader
or aHeader
instance) to give the fields additional semantics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<Field<T>>
toFieldSet()
-
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
-
-