Class DefaultDynOExtractor<T extends DynO>

java.lang.Object
overit.geocallapp.utilities.core.data.DynOExtractor<T>
overit.geocallapp.utilities.core.data.DefaultDynOExtractor<T>
Type Parameters:
T - the type of DynO objects this extractor accepts as input

public class DefaultDynOExtractor<T extends DynO> extends DynOExtractor<T>
Default implementation of DynOExtractor for creating Map from a specific DynO.
This extractor provides the standard mechanism for extracting a Map of objects from a specific DynO of the appropriate class type.
Since:
1.2
  • Constructor Details

    • DefaultDynOExtractor

      public DefaultDynOExtractor()
  • Method Details

    • makeExtractor

      public static <T extends DynO> DefaultDynOExtractor<T> makeExtractor()
      Factory method to create a new DefaultDynOExtractor instance.
      Type Parameters:
      T - the type of DynO objects the extract accepts as input
      Returns:
      a new configured DefaultDynOExtractor instance
    • extract

      public Map<String,Object> extract(T object)
      Description copied from class: DynOExtractor
      Creates a Map from the provided object of type T.
      Implementation-specific logic determines how the object is used to construct the map.
      Specified by:
      extract in class DynOExtractor<T extends DynO>
      Parameters:
      object - the object to use for map creation
      Returns:
      the Map object of type T