Class ByteSegment

All Implemented Interfaces:
Serializable, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.LengthAccessor, org.refcodes.mixin.PayloadAccessor<Byte>, org.refcodes.mixin.PayloadAccessor.PayloadBuilder<Byte,PayloadTransmission<Byte>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<Byte>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<Byte>, org.refcodes.mixin.Schemable<SerialSchema>, PayloadSegment<Byte>, PayloadTransmission<Byte>, Segment, Segment.SegmentMixin, Transmission, Transmission.TransmissionMixin

public class ByteSegment extends AbstractPayloadSegment<Byte> implements Segment
The ByteSegment is an implementation of a Segment carrying in byte value as payload.
See Also:
  • Field Details

  • Constructor Details

    • ByteSegment

      public ByteSegment()
      Constructs an empty ByteSegment.
    • ByteSegment

      public ByteSegment(Byte aValue)
      Constructs a ByteSegment with the given byte payload.
      Parameters:
      aValue - The value (payload) to be contained by the Segment.
    • ByteSegment

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

      public ByteSegment(String aAlias, Byte aValue)
      Constructs a ByteSegment with the given byte payload.
      Parameters:
      aAlias - The alias which identifies the content of this segment.
      aValue - The value (payload) to be contained by the Segment.
  • Method Details