Interface Adapter<From,To>


public interface Adapter<From,To>
Adapter definition that allow adapting objects to and from each other
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Method Summary

    Modifier and Type
    Method
    Description
    from(To a)
     
    to(From o)
     
    default boolean
    If the type is a generic type, unwrap and wrap again.
  • Method Details

    • unwrap

      default boolean unwrap()
      If the type is a generic type, unwrap and wrap again. So a list of a object, the object will be adapted and added to a new list.
      Returns:
      if we need to unwrap
    • to

      To to(From o) throws Exception
      Throws:
      Exception
    • from

      From from(To a) throws Exception
      Throws:
      Exception