Class PiCriterion
- java.lang.Object
-
- org.onosproject.net.flow.criteria.PiCriterion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPiCriterion.BuilderPiCriterion Builder.-
Nested classes/interfaces inherited from interface org.onosproject.net.flow.criteria.Criterion
Criterion.IPv6ExthdrFlags, Criterion.TcpFlags, Criterion.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PiCriterion.Builderbuilder()Returns the PiCriterion builder.static PiCriterion.Builderbuilder(PiCriterion piCriterion)Returns the PiCriterion builder initialized by the given PiCriterion.booleanequals(Object o)Optional<PiFieldMatch>fieldMatch(PiMatchFieldId fieldId)If present, returns the field match associated with the given header field identifier.Collection<PiFieldMatch>fieldMatches()Returns all protocol-independent field matches defined by this criterion.inthashCode()StringtoString()Criterion.Typetype()Returns the type of criterion.
-
-
-
Method Detail
-
fieldMatches
public Collection<PiFieldMatch> fieldMatches()
Returns all protocol-independent field matches defined by this criterion.- Returns:
- collection of match parameters
-
fieldMatch
public Optional<PiFieldMatch> fieldMatch(PiMatchFieldId fieldId)
If present, returns the field match associated with the given header field identifier.- Parameters:
fieldId- field identifier- Returns:
- optional field match
-
type
public Criterion.Type type()
Description copied from interface:CriterionReturns the type of criterion.
-
builder
public static PiCriterion.Builder builder()
Returns the PiCriterion builder.- Returns:
- PiCriterion builder
-
builder
public static PiCriterion.Builder builder(PiCriterion piCriterion)
Returns the PiCriterion builder initialized by the given PiCriterion.- Parameters:
piCriterion- the input PiCriterion- Returns:
- PiCriterion builder
-
-