Package org.onosproject.net.pi.runtime
Class PiMatchKey
- java.lang.Object
 - 
- org.onosproject.net.pi.runtime.PiMatchKey
 
 
- 
@Beta public final class PiMatchKey extends Object
Representation 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(Object o)Optional<PiFieldMatch>fieldMatch(PiMatchFieldId fieldId)If present, returns the field match associated with the given header field identifier.Collection<PiFieldMatch>fieldMatches()Returns the collection of field matches of this match key.inthashCode()StringtoString() 
 - 
 
- 
- 
Field Detail
- 
EMPTY
public static final PiMatchKey EMPTY
 
 - 
 
- 
Method Detail
- 
fieldMatches
public Collection<PiFieldMatch> fieldMatches()
Returns the collection of field matches of this match key.- Returns:
 - collection of field matches
 
 
- 
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
 
 
- 
builder
public static PiMatchKey.Builder builder()
Returns a new builder of match keys.- Returns:
 - match key builder
 
 
 - 
 
 -