| src | 5 years ago | ||
| .gitignore | 5 years ago | ||
| README.md | 5 years ago | ||
| lombok.config | 5 years ago | ||
| pom.xml | 5 years ago | ||
Annotate member variables for transformation
public class User {
@DateFormat(from = "MM-dd-yyyy", to = "yyyy/MM/dd")
private String date;
}
Instantiate
Transformer transformer = new Transformer(object);
Transform
transformer.transform();
Change the format of a date string
@DateFormat(from = "MM-dd-yyyy", to = "yyyy/MM/dd")
Data types supported
Format used by java.text.SimpleDateFormat
Transforms against a custom class
@CustomTransformer(MyManipulation.clss)
Required
Note: Custom transformation class must implement the Manipulation interface