Class Setter


public class Setter extends FromMethod
A Setter is a method that takes a single input parameter and returns void. It is used to set the value of a property on an object.
Author:
indroneel
  • Constructor Details

  • Method Details

    • getInputType

      public Class<?> getInputType()
      /////////////////////////////////////////////////////////////////////////////////////////////
      Specified by:
      getInputType in class FromMethod
      Returns:
      the input type of the method
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static Setter of(Method method)
      Returns a Setter object if the provided method is valid for conversion, or null if it is not valid.
      Parameters:
      method - the method to be checked
      Returns:
      the Setter instance or null if the method does not meet valid setter semantics