Interface ICBORToFromConverter<T>

Type Parameters:
T - Type of objects to convert to and from CBOR objects.
All Superinterfaces:
ICBORConverter<T>
All Known Implementing Classes:
CBORDateConverter

public interface ICBORToFromConverter<T> extends ICBORConverter<T>
Classes that implement this interface can support conversions from CBOR objects to a custom type and back.
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts a CBOR object to a custom type.

    Methods inherited from interface com.upokecenter.cbor.ICBORConverter

    ToCBORObject
  • Method Details

    • FromCBORObject

      T FromCBORObject(CBORObject obj)
      Converts a CBOR object to a custom type.
      Parameters:
      obj - A CBOR object to convert to the custom type.
      Returns:
      An object of the custom type after conversion.