Class Prize

java.lang.Object
  |
  +--Prize

public class Prize
extends Object

Prize on a gaming wheel.


Field Summary
protected  int value
          Value of this.
 
Constructor Summary
Prize(int aValue)
          Constructs a prize with the given value.
 
Method Summary
 boolean equals(Object obj)
          Returns whether or not this equals the given object.
 Color getColor()
          Returns the color of this.
 int getValue()
          Returns the value of this.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected int value
Value of this.

Constructor Detail

Prize

public Prize(int aValue)
Constructs a prize with the given value.

Parameters:
aValue - value for the prize
Method Detail

getValue

public int getValue()
Returns the value of this.


getColor

public Color getColor()
Returns the color of this.


equals

public boolean equals(Object obj)
Returns whether or not this equals the given object.

Overrides:
equals in class Object