Interface Rule.MapRule<Y>

Type Parameters:
Y - - the input data type that will be mapped
Enclosing interface:
Rule<T>

public static interface Rule.MapRule<Y>
The MapRule interface allows a label to be associated with a data mapping
Author:
terminological
  • Method Details

    • label

      String label()
    • rule

      Function<Y,Object> rule()
    • reflectionRules

      static <X> Rule.MapRule<X>[] reflectionRules(Class<X> clazz)
    • mapping

      static <Z> Rule.MapRule<Z> mapping(Method method)
      generates a mapping using reflection from a method specification
      Type Parameters:
      Z - the input type
      Parameters:
      method - - the java method
      Returns:
      - a mapping that associates the method name with the method.