edu.princeton.cs.algs4.growingtree.framework
Class ActionElementType<P extends NodeProperties>

java.lang.Object
  extended by edu.princeton.cs.algs4.growingtree.framework.ActionElementType<P>

public class ActionElementType<P extends NodeProperties>
extends java.lang.Object


Field Summary
static int BSTTREETYPE
           
static int DOUBLETYPE
           
static int INTEGERTYPE
           
static int KEYTYPETYPE
           
static int NODEKEYTYPE
           
 
Constructor Summary
ActionElementType(java.lang.Double value)
           
ActionElementType(GrowingTreeNode<P> value)
           
ActionElementType(java.lang.Integer value)
           
ActionElementType(KeyType value)
           
ActionElementType(NodeAndKey<P> value)
           
 
Method Summary
 GrowingTreeNode<P> getBSTTreeValue()
           
 java.lang.Double getDoubleValue()
           
 java.lang.Integer getIntegerValue()
           
 KeyType getKeyTypeValue()
           
 NodeAndKey<P> getNodeAndKeyValue()
           
 boolean isBSTTree()
           
 boolean isInteger()
           
 boolean isKeyType()
           
 boolean isNodeAndKeyType()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BSTTREETYPE

public static int BSTTREETYPE

INTEGERTYPE

public static int INTEGERTYPE

KEYTYPETYPE

public static int KEYTYPETYPE

NODEKEYTYPE

public static int NODEKEYTYPE

DOUBLETYPE

public static int DOUBLETYPE
Constructor Detail

ActionElementType

public ActionElementType(GrowingTreeNode<P> value)

ActionElementType

public ActionElementType(java.lang.Integer value)

ActionElementType

public ActionElementType(KeyType value)

ActionElementType

public ActionElementType(NodeAndKey<P> value)

ActionElementType

public ActionElementType(java.lang.Double value)
Method Detail

isBSTTree

public boolean isBSTTree()

isInteger

public boolean isInteger()

isKeyType

public boolean isKeyType()

isNodeAndKeyType

public boolean isNodeAndKeyType()

getBSTTreeValue

public GrowingTreeNode<P> getBSTTreeValue()

getIntegerValue

public java.lang.Integer getIntegerValue()

getKeyTypeValue

public KeyType getKeyTypeValue()

getNodeAndKeyValue

public NodeAndKey<P> getNodeAndKeyValue()

getDoubleValue

public java.lang.Double getDoubleValue()