Class PiHeader

  • All Implemented Interfaces:
    PiData

    @Beta
    public final class PiHeader
    extends Object
    implements PiData
    Instance of a PiHeader in a protocol-independent pipeline.
    • Method Detail

      • of

        public static PiHeader of​(Boolean isValid,
                                  List<ImmutableByteSequence> bitStrings)
        Returns a new protocol-independent header.
        Parameters:
        isValid - whether the header is valid
        bitStrings - bitstrings
        Returns:
        header
      • isValid

        public Boolean isValid()
        Return whether the header is valid.
        Returns:
        bool
      • bitStrings

        public List<ImmutableByteSequence> bitStrings()
        Return the header bit strings.
        Returns:
        the list of bit string
      • type

        public PiData.Type type()
        Description copied from interface: PiData
        Returns the type of this protocol-independent data.
        Specified by:
        type in interface PiData
        Returns:
        the type of this instance
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object