Package 

Interface Mapper


  • 
    public interface Mapper<T extends Object, V extends Object>
    
                        

    An interface to convert data of type T into V.

    Use this to map custom data types to a type that can be handled by a Fetcher.

    • Method Summary

      Modifier and Type Method Description
      abstract V map(T data, Options options) Convert data into V.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • map

         abstract V map(T data, Options options)

        Convert data into V. Return 'null' if this mapper cannot convert data.

        Parameters:
        data - The data to convert.
        options - The options for this request.