|
PokerSource Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pokersource.enum.HoldemHandGroupFactory
public class HoldemHandGroupFactory
Creates instances of HoldemHandGroup-implementing objects from their string representations. Use of this factory is preferred to directly calling the constructors of subclasses, as the factory maintains a cache of immutable instances.
| Method Summary | |
|---|---|
static HoldemHandGroup |
getInstance(java.lang.String groupSpec)
Tries to parse groupSpec into a hand group using the constructors of the list of known classes. |
static HoldemHandGroup |
getInstance(java.lang.String groupSpec,
java.lang.Class gclass)
Tries to parse groupSpec into a hand group using the gclass constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static HoldemHandGroup getInstance(java.lang.String groupSpec,
java.lang.Class gclass)
public static HoldemHandGroup getInstance(java.lang.String groupSpec)
|
PokerSource Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||