CLASS
- The type to be encoded by an implementation of this interface.CODE
- The type that objects are encoded to.public interface Converter<CLASS,CODE>
Modifier and Type | Method and Description |
---|---|
CODE |
from(CLASS item)
Convert from the item to its encoded form
|
CLASS |
to(CODE code)
Instantiates an instance of the desired class from its encoding
|
Copyright © 2018. All rights reserved.