Class BooleanArraySection

    • Constructor Detail

      • 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 Detail

      • getLength

        public int getLength()
        Determines the overall length of this Transmission. In case of nested Transmission instances, all length values from all sub-segments are accumulated to the result as well.
        Specified by:
        getLength in interface org.refcodes.mixin.LengthAccessor
        Specified by:
        getLength in interface Transmission
        Returns:
        The (overall) length of the Transmission (including any sub-segments).
      • withPayload

        public BooleanArraySection withPayload​(boolean[] aValue)
        Specified by:
        withPayload in interface org.refcodes.mixin.PayloadAccessor.PayloadBuilder<boolean[],​PayloadTransmission<boolean[]>>
      • setPayload

        public void setPayload​(Boolean[] aPayload)
        Convenience method to convert the array of wrapper types into its counterpart with primitive types before invoking AbstractPayloadSection.setPayload(Object).
        Parameters:
        aPayload - The payload with the wrapper types.
      • withPayload

        public BooleanArraySection withPayload​(Boolean[] aPayload)
        Convenience method to convert the array of wrapper types into its counterpart with primitive types before invoking withPayload(boolean[]).
        Parameters:
        aPayload - The payload with the wrapper types.
        Returns:
        This instance as of the builder pattern.