Class RecordImpl<T>

  • Type Parameters:
    T - The type managed by the Record.
    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 the Record interface being Cloneable.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<Field<? extends T>> toFieldSet()
      Returns the Field Set representation of the Record.
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • 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, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RecordImpl

        public RecordImpl()
        Constructs the RecordImpl instance.
      • RecordImpl

        @SafeVarargs
        public RecordImpl​(Field<? extends T>... aFields)
        Constructs the RecordImpl instance configured with the provided Field instances.
        Parameters:
        aFields - The Field instances to be contained in the RecordImpl.
      • RecordImpl

        public RecordImpl​(java.util.List<Field<T>> aFields)
        Constructs a record with the given items.
        Parameters:
        aFields - The items to be added.
    • Method Detail

      • toFieldSet

        public java.util.Set<Field<? extends T>> toFieldSet()
        Description copied from interface: Record
        Returns the Field Set representation of the Record.
        Specified by:
        toFieldSet in interface Record<T>
        Returns:
        The Field instances representation of the Record.