Class NumericOneByteOperandParser
java.lang.Object
org.opendaylight.protocol.bgp.flowspec.handlers.AbstractOperandParser<NumericOperand>
org.opendaylight.protocol.bgp.flowspec.handlers.AbstractNumericOperandParser<NumericOneByteValue>
org.opendaylight.protocol.bgp.flowspec.handlers.NumericOneByteOperandParser
public final class NumericOneByteOperandParser
extends AbstractNumericOperandParser<NumericOneByteValue>
Parser class for NumericOneByteValues.
-
Field Summary
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
Modifier and TypeMethodDescriptionprotected <T extends NumericOneByteValue>
org.opendaylight.yangtools.yang.common.Uint8getValue
(T item) <T extends NumericOneByteValue>
voidSerializes Flowspec component type that has maximum of 1B sized value field and numeric operand.final <T extends N>
StringMethods 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 Details
-
INSTANCE
-
-
Method Details
-
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
- Specified by:
toString
in classAbstractNumericOperandParser<N>
-