Class TLV<T extends TLV.Type<V,​P>,​V,​P>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TLV.List<E extends TLV<T,​V,​?>,​T extends TLV.Type<V,​?>,​V>  
      static interface  TLV.Type<V,​P>  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int length  
      T type  
      V value  
    • Constructor Summary

      Constructors 
      Constructor Description
      TLV​(io.netty.buffer.ByteBuf buffer, java.util.function.IntFunction<T> typer, P parameter, java.util.Optional<PeerInfo> peerInfo)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isValid()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • length

        public final int length
      • value

        public final V value
    • Method Detail

      • isValid

        public boolean isValid()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object