Package ru.bitel.bgbilling.kernel.network.tlv

# Class Tlv<I extends TlvInfo<?,V,?>,V>

java.lang.Object
ru.bitel.bgbilling.kernel.network.tlv.Tlv<I,V>

Direct Known Subclasses:
  `RadiusAttribute`

public class Tlv<I extends TlvInfo<?,V,?>,V> extends Object
TypeLengthValue - тип, длина и значение

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected final ByteBuffer`
  `data`
  `final I`
  `info`
  `protected final int`
  `length`
  `protected V`
  `value`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Tlv(I info, byte[] data)`
  `Tlv(I info, ByteBuffer data)`
  `Tlv(I info, ByteBuffer data, V value)`
  `Tlv(I info, V value)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ByteBuffer`
  `getData()`
  `byte[]`
  `getDataAsByteArray()`
  `int`
  `getLength()`
  `V`
  `getValue()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### info

    public final I extends TlvInfo<?,V,?> info

  - ### length

    protected final int length

  - ### data

    protected final ByteBuffer data

  - ### value

    protected V value

- ## Constructor Details

  - ### Tlv

    public Tlv(I info, ByteBuffer data)

  - ### Tlv

    public Tlv(I info, byte[] data)

  - ### Tlv

    public Tlv(I info, V value)

  - ### Tlv

    public Tlv(I info, ByteBuffer data, V value)

- ## Method Details

  - ### getData

    public ByteBuffer getData()

  - ### getDataAsByteArray

    public byte[] getDataAsByteArray()

  - ### getLength

    public int getLength()

  - ### getValue

    public V getValue()