Interface ConversionAdaptor<N,R>


public interface ConversionAdaptor<N,R>
Declares methods for converting between an object of some native type and a representation suitable for a particular tool (e.g. for archiving and unarchiving objects).
  • Method Summary

    Modifier and Type
    Method
    Description
    toNative(R primitive)
    convert the representation into the native type
    convert the native type to a desired representation
  • Method Details

    • toRepresentation

      R toRepresentation(N custom)
      convert the native type to a desired representation
    • toNative

      N toNative(R primitive)
      convert the representation into the native type