org.fest.assertions.data
Class Point

java.lang.Object
  extended by org.fest.assertions.data.Point

public class Point
extends Object

Represents a location in (x, y) coordinate space, specified in integer precision.

Author:
Yvonne Wang

Field Summary
 int x
          The x coordinate.
 int y
          The y coordinate.
 
Method Summary
static Point atPoint(int x, int y)
          Creates a new Point.
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public final int x
The x coordinate.


y

public final int y
The y coordinate.

Method Detail

atPoint

public static Point atPoint(int x,
                            int y)
Creates a new Point.

Parameters:
x - the x coordinate.
y - the y coordinate.
Returns:
the created Point.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.