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
Classes that implement this interface can support conversions from CBOR
objects to a custom type and back.
-
Method Summary
Modifier and TypeMethodDescriptionFromCBORObject(CBORObject obj) Converts a CBOR object to a custom type.Methods inherited from interface com.upokecenter.cbor.ICBORConverter
ToCBORObject
-
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.
-