soc.robot
Class SOCResSetBuildTimePair

java.lang.Object
  extended by soc.robot.SOCResSetBuildTimePair

public class SOCResSetBuildTimePair
extends java.lang.Object

this class holds a SOCResourceSet and a building type


Field Summary
(package private)  SOCResourceSet resources
          the resource set
(package private)  int rolls
          number of rolls
 
Constructor Summary
SOCResSetBuildTimePair(SOCResourceSet rs, int bt)
          the constructor
 
Method Summary
 boolean equals(java.lang.Object anObject)
           
 SOCResourceSet getResources()
           
 int getRolls()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

resources

SOCResourceSet resources
the resource set


rolls

int rolls
number of rolls

Constructor Detail

SOCResSetBuildTimePair

public SOCResSetBuildTimePair(SOCResourceSet rs,
                              int bt)
the constructor

Parameters:
rs - the resource set
bt - the building time
Method Detail

getResources

public SOCResourceSet getResources()
Returns:
the resource set

getRolls

public int getRolls()
Returns:
the building time

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
a hashcode for this pair

equals

public boolean equals(java.lang.Object anObject)
Overrides:
equals in class java.lang.Object
Parameters:
anObject - the object in question
Returns:
true if the argument contains the same data

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a human readable form of this object