Package org.onosproject.net.pi.runtime
Class PiLpmFieldMatch
- java.lang.Object
 - 
- org.onosproject.net.pi.runtime.PiFieldMatch
 - 
- org.onosproject.net.pi.runtime.PiLpmFieldMatch
 
 
 
- 
@Beta public final class PiLpmFieldMatch extends PiFieldMatch
Instance of a longest-prefix field match in a protocol-independent pipeline. 
- 
- 
Constructor Summary
Constructors Constructor Description PiLpmFieldMatch(PiMatchFieldId fieldId, ImmutableByteSequence value, int prefixLength)Creates a new LPM field match. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()intprefixLength()Returns the prefix length to be matched.java.lang.StringtoString()PiMatchTypetype()Returns the type of match to be performed.ImmutableByteSequencevalue()Returns the value matched by this field.- 
Methods inherited from class org.onosproject.net.pi.runtime.PiFieldMatch
fieldId 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
PiLpmFieldMatch
public PiLpmFieldMatch(PiMatchFieldId fieldId, ImmutableByteSequence value, int prefixLength)
Creates a new LPM field match.- Parameters:
 fieldId- field identifiervalue- valueprefixLength- prefix length
 
 - 
 
- 
Method Detail
- 
type
public PiMatchType type()
Description copied from class:PiFieldMatchReturns the type of match to be performed.- Specified by:
 typein classPiFieldMatch- Returns:
 - a match type value
 
 
- 
value
public ImmutableByteSequence value()
Returns the value matched by this field.- Returns:
 - a byte sequence value
 
 
- 
prefixLength
public int prefixLength()
Returns the prefix length to be matched.- Returns:
 - an integer value
 
 
- 
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
 
 - 
 
 -