Class PiCriterion
- java.lang.Object
-
- org.onosproject.net.flow.criteria.PiCriterion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PiCriterion.Builder
PiCriterion 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.Builder
builder()
Returns the PiCriterion builder.boolean
equals(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.int
hashCode()
java.lang.String
toString()
Criterion.Type
type()
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:Criterion
Returns the type of criterion.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static PiCriterion.Builder builder()
Returns the PiCriterion builder.- Returns:
- PiCriterion builder
-
-