Code example for Point

Methods: equals

0
	} 
	 
	public boolean equals(Object other){
		if ( !_full )
			return false; 
		return ((Cell)other).get_pos().equals(_pos);
	} 
	 
	public int hashCode(){ 
		return 1; 
	} 
 
	public void fill(int i, int j) {
		_pos = new Point(i*Grid.GRID_SPACING,j*Grid.GRID_SPACING);
		_full = true;
	} 
 
	public void empty() { 
		_full = false;
	} 
Connect your IDE to all the code out there  Get Codota for Java