PokerSource Java API

org.pokersource.enum
Class HoldemHandGroupFactory

java.lang.Object
  |
  +--org.pokersource.enum.HoldemHandGroupFactory

public class HoldemHandGroupFactory
extends java.lang.Object

Creates instances of HoldemHandGroup objects from their string representations. Use of this factory is preferred to directly calling the constructors of the HoldemHandGroup subclasses.

Author:
Michael Maurer

Field Summary
private static java.util.HashMap cache
           
private static java.lang.Class[] groupClasses
          Set of registered classes that we know how to instantiate.
 
Constructor Summary
HoldemHandGroupFactory()
           
 
Method Summary
static HoldemHandGroup getInstance(java.lang.String groupSpec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupClasses

private static java.lang.Class[] groupClasses
Set of registered classes that we know how to instantiate.


cache

private static java.util.HashMap cache
Constructor Detail

HoldemHandGroupFactory

public HoldemHandGroupFactory()
Method Detail

getInstance

public static HoldemHandGroup getInstance(java.lang.String groupSpec)

PokerSource Java API

PokerSource Home Page - Learn how you can contribute!