Package org.onosproject.net.pi.runtime
Class PiMatchKey.Builder
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiMatchKey.Builder
-
- Enclosing class:
- PiMatchKey
public static final class PiMatchKey.Builder extends java.lang.Object
Builder of match keys.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiMatchKey.Builder
addFieldMatch(PiFieldMatch fieldMatch)
Adds one field match to this match key.PiMatchKey.Builder
addFieldMatches(java.util.Collection<PiFieldMatch> fieldMatches)
Adds many field matches to this match key.PiMatchKey
build()
Creates a new match key.
-
-
-
Method Detail
-
addFieldMatch
public PiMatchKey.Builder addFieldMatch(PiFieldMatch fieldMatch)
Adds one field match to this match key.- Parameters:
fieldMatch
- field match- Returns:
- this
-
addFieldMatches
public PiMatchKey.Builder addFieldMatches(java.util.Collection<PiFieldMatch> fieldMatches)
Adds many field matches to this match key.- Parameters:
fieldMatches
- collection of field matches- Returns:
- this
-
build
public PiMatchKey build()
Creates a new match key.- Returns:
- match key
-
-