Class BooleanArraySection

java.lang.Object
org.refcodes.serial.AbstractPayloadSection<boolean[]>
org.refcodes.serial.BooleanArraySection
All Implemented Interfaces:
Serializable, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.PayloadAccessor<boolean[]>, org.refcodes.mixin.PayloadAccessor.PayloadBuilder<boolean[],PayloadTransmission<boolean[]>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<boolean[]>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<boolean[]>, org.refcodes.mixin.Schemable<SerialSchema>, PayloadSection<boolean[]>, PayloadTransmission<boolean[]>, Section, Section.SectionMixin, Transmission, Transmission.TransmissionMixin

public class BooleanArraySection extends AbstractPayloadSection<boolean[]> implements PayloadSection<boolean[]>
The BooleanArraySection is an implementation of a Section carrying a boolean array as payload. As the boolean array is mapped as a bit field (and the boolean array's length is not necessarily a multiple of 8) into a byte array, we prefix the modulo 8 value of the length of the boolean array when working with binary representations as of the Section interface.
See Also:
  • Constructor Details

    • BooleanArraySection

      public BooleanArraySection()
      Constructs an empty BooleanArraySection.
    • BooleanArraySection

      public BooleanArraySection(boolean... aValue)
      Constructs a BooleanArraySection with the given boolean array payload.
      Parameters:
      aValue - The array (payload) to be contained by the BooleanArraySection.
    • BooleanArraySection

      public BooleanArraySection(Boolean... aValue)
      Constructs a BooleanArraySection with the given boolean array payload.
      Parameters:
      aValue - The array (payload) to be contained by the BooleanArraySection.
    • BooleanArraySection

      public BooleanArraySection(String aAlias)
      Constructs an empty BooleanArraySection.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
    • BooleanArraySection

      public BooleanArraySection(String aAlias, boolean... aValue)
      Constructs a BooleanArraySection with the given boolean array payload.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
      aValue - The array (payload) to be contained by the BooleanArraySection.
    • BooleanArraySection

      public BooleanArraySection(String aAlias, Boolean... aValue)
      Constructs a BooleanArraySection with the given boolean array payload.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
      aValue - The array (payload) to be contained by the BooleanArraySection.
  • Method Details