Class FunctioningImpl

All Implemented Interfaces:
Functioning, Specifying<Functioning>

class FunctioningImpl extends AbstractSpecifying<Functioning> implements Functioning
  • Field Details

  • Constructor Details

  • Method Details

    • to

      public <T> Function<Object,T> to(Class<T> cls)
      Description copied from interface: Functioning
      Specify the target object type for the conversion as a class object.
      Specified by:
      to in interface Functioning
      Parameters:
      cls - The class to convert to.
      Returns:
      A function that can perform the conversion.
    • to

      public <T> Function<Object,T> to(TypeReference<T> ref)
      Description copied from interface: Functioning
      Specify the target object type as a TypeReference. If the target class carries generics information a TypeReference should be used as this preserves the generic information whereas a Class object has this information erased. Example use:
       List<String> result = converter.function()
                      .to(new TypeReference<List<String>>() {});
       
      Specified by:
      to in interface Functioning
      Parameters:
      ref - A type reference to the object being converted to.
      Returns:
      A function that can perform the conversion.
    • to

      public <T> Function<Object,T> to(Type type)
      Description copied from interface: Functioning
      Specify the target object type as a Java Reflection Type object.
      Specified by:
      to in interface Functioning
      Parameters:
      type - A Type object to represent the target type to be converted to.
      Returns:
      A function that can perform the conversion.
    • applyModifiers