Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PointTransform implements Transform<Point> {
- public Point read(String value) {
- return fromString(value);
- }
- public String write(Point value) {
- return toString(value);
- }
- // etc ...
- }
- @Root
- public class Point {
- @Attribute
- private int x;
- @Attribute
- private int y;
- public int getX() {
- return x;
- }
- public int getY() {
- return y;
- }
- }
Add Comment
Please, Sign In to add comment