Package org.onosproject.net.pi.runtime
Class PiExactFieldMatch
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiFieldMatch
-
- org.onosproject.net.pi.runtime.PiExactFieldMatch
-
@Beta public final class PiExactFieldMatch extends PiFieldMatch
Instance of an exact field match in a protocol-independent pipeline.
-
-
Constructor Summary
Constructors Constructor Description PiExactFieldMatch(PiMatchFieldId fieldId, ImmutableByteSequence value)
Creates an exact field match.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
PiMatchType
type()
Returns the type of match to be performed.ImmutableByteSequence
value()
Returns the byte sequence value to be matched.-
Methods inherited from class org.onosproject.net.pi.runtime.PiFieldMatch
fieldId
-
-
-
-
Constructor Detail
-
PiExactFieldMatch
public PiExactFieldMatch(PiMatchFieldId fieldId, ImmutableByteSequence value)
Creates an exact field match.- Parameters:
fieldId
- field identifiervalue
- value
-
-
Method Detail
-
type
public PiMatchType type()
Description copied from class:PiFieldMatch
Returns the type of match to be performed.- Specified by:
type
in classPiFieldMatch
- Returns:
- a match type value
-
value
public ImmutableByteSequence value()
Returns the byte sequence value to be matched.- Returns:
- an immutable byte sequence
-
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
-
-