Class PiHeader
- java.lang.Object
-
- org.onosproject.net.pi.runtime.data.PiHeader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.onosproject.net.pi.model.PiData
PiData.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ImmutableByteSequence>bitStrings()Return the header bit strings.booleanequals(Object o)inthashCode()BooleanisValid()Return whether the header is valid.static PiHeaderof(Boolean isValid, List<ImmutableByteSequence> bitStrings)Returns a new protocol-independent header.StringtoString()PiData.Typetype()Returns the type of this protocol-independent data.
-
-
-
Method Detail
-
of
public static PiHeader of(Boolean isValid, List<ImmutableByteSequence> bitStrings)
Returns a new protocol-independent header.- Parameters:
isValid- whether the header is validbitStrings- 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:PiDataReturns the type of this protocol-independent data.
-
-