Class NumericOneByteOperandParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParser<NumericOperand>
-
- org.opendaylight.protocol.bgp.flowspec.handlers.AbstractNumericOperandParser<N>
-
- org.opendaylight.protocol.bgp.flowspec.handlers.NumericOneByteOperandParser
-
public final class NumericOneByteOperandParser extends AbstractNumericOperandParser<N>
Parser class for NumericOneByteValues.
-
-
Field Summary
Fields Modifier and Type Field Description static NumericOneByteOperandParser
INSTANCE
-
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractNumericOperandParser
EQUALS_VALUE, GREATER_THAN_VALUE, LESS_THAN_VALUE
-
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParser
AND_BIT, AND_BIT_VALUE, END_OF_LIST, END_OF_LIST_VALUE, LENGTH_SHIFT, OPERAND_LENGTH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends NumericOneByteValue>
org.opendaylight.yangtools.yang.common.Uint8getValue(T item)
<T extends NumericOneByteValue>
voidserialize(List<T> list, io.netty.buffer.ByteBuf nlriByteBuf)
Serializes Flowspec component type that has maximum of 1B sized value field and numeric operand.<T extends N>
StringtoString(List<T> list)
-
Methods inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractNumericOperandParser
create, parse, serialize, toString
-
Methods inherited from class org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParser
parseLength
-
-
-
-
Field Detail
-
INSTANCE
public static final NumericOneByteOperandParser INSTANCE
-
-
Method Detail
-
serialize
public <T extends NumericOneByteValue> void serialize(List<T> list, io.netty.buffer.ByteBuf nlriByteBuf)
Serializes Flowspec component type that has maximum of 1B sized value field and numeric operand.- Specified by:
serialize
in classAbstractNumericOperandParser<NumericOneByteValue>
- Parameters:
list
- of operands to be serializednlriByteBuf
- where the operands will be serialized
-
getValue
protected <T extends NumericOneByteValue> org.opendaylight.yangtools.yang.common.Uint8 getValue(T item)
-
toString
public final <T extends N> String toString(List<T> list)
- Specified by:
toString
in classAbstractNumericOperandParser<N>
-
-