File: DummyPoint.java

package info (click to toggle)
rjava 1.0-11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,184 kB
  • sloc: java: 13,223; ansic: 5,479; sh: 3,776; xml: 325; makefile: 250; perl: 33
file content (22 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

public class DummyPoint implements Cloneable {
	public int x; 
	public int y ;
	public DummyPoint(){
		this( 0, 0 ) ;
	}
	public DummyPoint( int x, int y){
		this.x = x ;
		this.y = y ;
	}
	public double getX(){
		return (double)x ;
	}
	public void move(int x, int y){
		this.x += x ;
		this.y += y ;
	}
	public Object clone() {
		return new DummyPoint(x, y);
	}
}