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(java.lang.Object o)java.util.Optional<PiFieldMatch>fieldMatch(PiMatchFieldId fieldId)If present, returns the field match associated with the given header field identifier.java.util.Collection<PiFieldMatch>fieldMatches()Returns all protocol-independent field matches defined by this criterion.inthashCode()java.lang.StringtoString()Criterion.Typetype()Returns the type of criterion.
-
-
-
Method Detail
-
fieldMatches
public java.util.Collection<PiFieldMatch> fieldMatches()
Returns all protocol-independent field matches defined by this criterion.- Returns:
- collection of match parameters
-
fieldMatch
public java.util.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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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
-
-