- Type Parameters:
T
- The type managed by theRecord
.
- All Known Implementing Classes:
RecordImpl
public interface Record<T> extends Map<String,T>
A
Record
is a Map
containing Field
data
structures with support for Column
definitions. The Field
instances can be managed with the functionality provided by a Column
.
A value can be retrieved from a Record
by providing an according
Column
definition, which verifies the value type. Also values can be
converted to and from the appropriate interchange and string formats by the
according Column
instances.
In contrast to a Row
, a Record
relates the key (name) to its
values. Similar to a Row
, a Record
makes use of
Column
instances (for example as provided by a Header
or a
Header
instance) to give the fields additional semantics.
-
Nested Class Summary
-
Method Summary
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
toFieldSet
-
toPurged
ThisRecord
is taken and only all non null values are taken for the returnedRecord
. In case of string objects, onlyString
instances with a length greater than zero are taken into account for the returnedRecord
.- Returns:
- The output
Record
without any keys which's values were null or in case of strings which's length was zero.
-