com.motlin.risk.simulation.step
Class StepKey

java.lang.Object
  extended by com.motlin.risk.simulation.step.StepKey
All Implemented Interfaces:
Comparable<StepKey>

public final class StepKey
extends Object
implements Comparable<StepKey>


Constructor Summary
StepKey(int numberOfAttackers, int numberOfDefenders)
           
 
Method Summary
 int compareTo(StepKey other)
           
 boolean equals(Object obj)
           
 int getNumberOfAttackers()
           
 int getNumberOfDefenders()
           
 int hashCode()
           
 boolean isDone()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StepKey

public StepKey(int numberOfAttackers,
               int numberOfDefenders)
Method Detail

compareTo

public int compareTo(StepKey other)
Specified by:
compareTo in interface Comparable<StepKey>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getNumberOfAttackers

public int getNumberOfAttackers()

getNumberOfDefenders

public int getNumberOfDefenders()

isDone

public boolean isDone()

toString

public String toString()
Overrides:
toString in class Object