Class StyleHelper


  • public class StyleHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      StyleHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T merge​(T left, T right)
      Copies all non-null properties from right into left, recursively.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StyleHelper

        public StyleHelper()
    • Method Detail

      • merge

        public static <T> T merge​(T left,
                                  T right)
        Copies all non-null properties from right into left, recursively. Assumes use of @With from project lombok.
        Type Parameters:
        T - Type of left and right
        Parameters:
        left - left object, target of merged properties
        right - right object, source of merged properties
        Returns:
        left object with merged properties from right