de.uni_paderborn.robots.robotArenaInterface.proxy
Class HashSetIntPair

java.lang.Object
  |
  +--de.uni_paderborn.robots.robotArenaInterface.proxy.HashSetIntPair

public class HashSetIntPair
extends java.lang.Object

A class which encapsulates a pair of integers for a hashset.


Field Summary
private  int first
          The first value.
private  int second
          The second value.
 
Constructor Summary
HashSetIntPair(int first, int second)
          Constructs this class.
 
Method Summary
 boolean equals(java.lang.Object object)
          Indicates whether some other object is equal to this one.
 int getFirst()
          Returns the first int value.
 int getSecond()
          Returns the second int value.
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

first

private int first
The first value.

second

private int second
The second value.
Constructor Detail

HashSetIntPair

public HashSetIntPair(int first,
                      int second)
Constructs this class.
Parameters:
first - the first int value
second - the first int value
Method Detail

getFirst

public int getFirst()
Returns the first int value.
Returns:
the first integer

getSecond

public int getSecond()
Returns the second int value.
Returns:
the second integer

equals

public boolean equals(java.lang.Object object)
Indicates whether some other object is equal to this one. Necessary because HashSet internally uses this function.
Overrides:
equals in class java.lang.Object
Parameters:
object - the object to compare this one to
Returns:
true if the objects are equal, false otherwise