Package org.openrewrite.style
Class StyleHelper
- java.lang.Object
-
- org.openrewrite.style.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> Tmerge(T left, T right)Copies all non-null properties from right into left, recursively.
-
-
-
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 propertiesright- right object, source of merged properties- Returns:
- left object with merged properties from right
-
-