public static Sequence createSequence() {
return new Sequence();
}
public static class Sequence {
public Sequence set(int x, int y) {
// do something with x, y
return this;
}
public Sequence move(int x, int y) {
// do something with x, y
return this;
}
//...
}