Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class NodeSet implements HasJsRepresentation {
- public int id;
- public int x;
- public int y;
- public int[] nodes;
- public static NodeSet construct(final int id, final int[] nodes) {
- NodeSet nodeSet = new NodeSet();
- nodeSet.id = id;
- nodeSet.nodes = nodes;
- nodeSet.x=0;
- nodeSet.y=0;
- return nodeSet;
- }
- @Override
- public final JsPlainObj asJsPlainObj() {
- return JsPlainObj.$jsPlainObj("id", id, "x", x, "y" ,y, "nodes",nodes);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement