Class RecordRegister

All Implemented Interfaces:
DataRegister, RecordSettable, RecordValued, TokenSettable, TokenValued, RecordTyped, TokenTyped

public class RecordRegister extends AbstractRecordValued<ScalarRegister> implements DataRegister, RecordSettable
A composite register of scalar registers; a mutable RecordValued object. A RecordRegister can also be thought of as an updateable row of tabular data.
  • Constructor Details

    • RecordRegister

      public RecordRegister(RecordTokenType type)
      Constructs a new null-valued register with the given record type. The resulting field registers are all null-valued initially.
      Parameters:
      type - the record schema of the register
  • Method Details

    • set

      public void set(TokenValued value)
      Description copied from interface: TokenSettable
      Sets the contained value to the given token value. The given value must have a type compatible with this object.
      Specified by:
      set in interface TokenSettable
      Parameters:
      value - the value to which to set the container
    • setNull

      public void setNull()
      Description copied from interface: TokenSettable
      Sets the contained value to be null valued.
      Specified by:
      setNull in interface TokenSettable
    • setZero

      public void setZero()
      Description copied from interface: TokenSettable
      Sets the contained value to be zero valued.
      Specified by:
      setZero in interface TokenSettable