Class AdtCbor<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      AdtCbor​(io.bullet.borer.Encoder<T> evidence$1, io.bullet.borer.Decoder<T> evidence$2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <U extends T>
      U
      decode​(byte[] bytes)  
      byte[] encode​(T adt)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdtCbor

        public AdtCbor​(io.bullet.borer.Encoder<T> evidence$1,
                       io.bullet.borer.Decoder<T> evidence$2)
    • Method Detail

      • decode

        public <U extends T> U decode​(byte[] bytes)
      • encode

        public byte[] encode​(T adt)