Package org.onosproject.net.pi.runtime
Class PiMatchKey
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiMatchKey
-
@Beta public final class PiMatchKey extends java.lang.ObjectRepresentation of all field matches of an entry of a match+action table of a protocol-independent pipeline.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPiMatchKey.BuilderBuilder of match keys.
-
Field Summary
Fields Modifier and Type Field Description static PiMatchKeyEMPTY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PiMatchKey.Builderbuilder()Returns a new builder of match keys.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 the collection of field matches of this match key.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
EMPTY
public static final PiMatchKey EMPTY
-
-
Method Detail
-
fieldMatches
public java.util.Collection<PiFieldMatch> fieldMatches()
Returns the collection of field matches of this match key.- Returns:
- collection of field matches
-
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
-
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 PiMatchKey.Builder builder()
Returns a new builder of match keys.- Returns:
- match key builder
-
-