net.aerith.misao.util
Class Pair

java.lang.Object
  |
  +--net.aerith.misao.util.Pair
Direct Known Subclasses:
StarPair

public class Pair
extends java.lang.Object

The Pair represents a pair of two Positions.


Field Summary
protected  Position first_position
          The first position.
protected  Position second_position
          The second position.
 
Constructor Summary
protected Pair()
          Constructs an empty Pair.
  Pair(Position position1, Position position2)
          Constructs a Pair.
 
Method Summary
 Position getFirstPosition()
          Gets the first position.
 Position getSecondPosition()
          Gets the second position.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

first_position

protected Position first_position
The first position.

second_position

protected Position second_position
The second position.
Constructor Detail

Pair

protected Pair()
Constructs an empty Pair.

Pair

public Pair(Position position1,
            Position position2)
Constructs a Pair.
Parameters:
position1 - the first position of the pair.
position2 - the second position of the pair.
Method Detail

getFirstPosition

public Position getFirstPosition()
Gets the first position.
Returns:
the first position.

getSecondPosition

public Position getSecondPosition()
Gets the second position.
Returns:
the second position.