Package com.upokecenter.cbor
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 TFromCBORObject(CBORObject obj)Converts a CBOR object to a custom type.
-
Method Details
-
FromCBORObject
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.
-