public class Bid
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Bid |
BRIDGE_7_NT |
static Bid |
BRIDGE_DOUBLE |
static Bid |
BRIDGE_PASS |
static Bid |
BRIDGE_REDOUBLE |
static int |
NO_VALUE
Specifies that the bid has no value (e.g.
|
static Bid |
SPADES_SHOW_CARDS |
| Constructor and Description |
|---|
Bid(int value) |
Bid(int value,
Suit suit) |
Bid(int value,
Suit suit,
int spec,
int spec2) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getSpec() |
int |
getSpec2() |
Suit |
getSuit() |
int |
getVal() |
int |
hashCode()
This is here only because the Java API says we should implement
hashCode() if we implement equals().
|
java.lang.String |
toString() |
public static final Bid BRIDGE_PASS
public static final Bid BRIDGE_DOUBLE
public static final Bid BRIDGE_REDOUBLE
public static final Bid BRIDGE_7_NT
public static final Bid SPADES_SHOW_CARDS
public static final int NO_VALUE
public Bid(int value)
public Bid(int value,
Suit suit)
public Bid(int value,
Suit suit,
int spec,
int spec2)
public int getVal()
public Suit getSuit()
public int getSpec()
public int getSpec2()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object