Class AbstractHelper

    • Constructor Detail

      • AbstractHelper

        protected AbstractHelper()
    • Method Detail

      • shouldTransform

        protected boolean shouldTransform​(Field field)
        Checks, if this field is a scalar and the object has the wrong type. Transformation is only possible for scalars and only needed if types don't match.
        Parameters:
        field - the field
        Returns:
        if transformation is needed
      • shouldAdapt

        protected boolean shouldAdapt​(Field field)
        Checks if we should adapt the field This is (for now) only applying to AdaptWith
        Parameters:
        field - the field
        Returns:
        if adaption is needed
      • getArrayType

        protected Class<?> getArrayType​(Field field)