edu.columbia.surge.hashImpl
Class FDRefFactoryH

java.lang.Object
  |
  +--edu.columbia.surge.hashImpl.FDRefFactoryH

public class FDRefFactoryH
extends java.lang.Object
implements FDRefFactory

This class holds the factory methods for the FDRef class. Users can use this class to create instances of FDRef objects with their desired parameters. A static keyword is used to instantiate an instance of FDRefFactoryH so that the static variable "factory" in this class will have access to the create methods. Users can also create instances of FDRefH directly using the constructors of the FDRef class. The primary reason of the creation of this class is to allow the FDRef class, which implements the FDRef interface to have constructors while being able to implement all the methods in the interface.

See Also:
FDRefH

Field Summary
static FDRefFactoryH factory
          The static instance which helps users to access to the methods in this class.
 
Method Summary
 FDRef create(java.lang.Object ref)
          A factory method which creates an instance of FDRefH with the given object to be referrenced to as the hole.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

public static FDRefFactoryH factory
The static instance which helps users to access to the methods in this class.
Method Detail

create

public FDRef create(java.lang.Object ref)
A factory method which creates an instance of FDRefH with the given object to be referrenced to as the hole.
Specified by:
create in interface FDRefFactory
Parameters:
ref - the hole of the FD, it is either a FD or a FDNull object.
Returns:
a default instance of FDH