Package org.openrewrite.style
Class StyleHelper
java.lang.Object
org.openrewrite.style.StyleHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tmerge(T left, T right) Copies all non-null properties from right into left, recursively.
-
Constructor Details
-
StyleHelper
public StyleHelper()
-
-
Method Details
-
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
-