Class AbstractNumericOperandParser<N>

    • Constructor Detail

      • AbstractNumericOperandParser

        public AbstractNumericOperandParser()
    • Method Detail

      • serialize

        public final void serialize​(NumericOperand operand,
                                    int length,
                                    boolean endOfList,
                                    io.netty.buffer.ByteBuf buffer)
        Description copied from class: AbstractOperandParser
        Serializes operand to bytes.
        Specified by:
        serialize in class AbstractOperandParser<NumericOperand>
        Parameters:
        operand - operand to be serialized
        length - value of the 'length' field
        endOfList - if this operand is at the end of the list
        buffer - where the operand will be serialized to
      • serialize

        protected abstract <T extends N> void serialize​(List<T> list,
                                                        io.netty.buffer.ByteBuf nlriByteBuf)
        Serializes specific numeric operand type depending on the length field value.
        Parameters:
        list - of operands to be serialized
        nlriByteBuf - where the operands will be serialized
      • toString

        public String toString​(NumericOperand operand,
                               boolean isFirst)
        Description copied from class: AbstractOperandParser
        Creates a string representation of the operand. E.g. : 'and does not match'
        Specified by:
        toString in class AbstractOperandParser<NumericOperand>
        Parameters:
        operand - operand
        isFirst - true if this operand is the first in list of operands
        Returns:
        String representation of the operand
      • toString

        protected abstract <T extends NString toString​(List<T> list)