org.javimmutable.collections.tree_list
Class UpdateResult<T>

java.lang.Object
  extended by org.javimmutable.collections.tree_list.UpdateResult<T>

@Immutable
public class UpdateResult<T>
extends Object


Nested Class Summary
static class UpdateResult.Type
           
 
Field Summary
 TreeNode<T> extraNode
           
 TreeNode<T> newNode
           
 UpdateResult.Type type
           
 
Method Summary
static
<T> UpdateResult<T>
createInPlace(TreeNode<T> newNode)
           
 TreeNode<T> createLeftThreeNode(TreeNode<T> right, int rightSize)
           
 TreeNode<T> createLeftTwoNode(TreeNode<T> right, int rightSize)
           
 TreeNode<T> createRightThreeNode(TreeNode<T> left, int leftSize)
           
 TreeNode<T> createRightTwoNode(TreeNode<T> left, int leftSize)
           
static
<T> UpdateResult<T>
createSplit(TreeNode<T> newNode, TreeNode<T> extraNode)
           
 TreeNode<T> createTwoNode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public final UpdateResult.Type type

newNode

public final TreeNode<T> newNode

extraNode

public final TreeNode<T> extraNode
Method Detail

createInPlace

public static <T> UpdateResult<T> createInPlace(TreeNode<T> newNode)

createSplit

public static <T> UpdateResult<T> createSplit(TreeNode<T> newNode,
                                              TreeNode<T> extraNode)

createTwoNode

public TreeNode<T> createTwoNode()

createLeftTwoNode

public TreeNode<T> createLeftTwoNode(TreeNode<T> right,
                                     int rightSize)

createLeftThreeNode

public TreeNode<T> createLeftThreeNode(TreeNode<T> right,
                                       int rightSize)

createRightTwoNode

public TreeNode<T> createRightTwoNode(TreeNode<T> left,
                                      int leftSize)

createRightThreeNode

public TreeNode<T> createRightThreeNode(TreeNode<T> left,
                                        int leftSize)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Burton Computer Corporation. All rights reserved.