docstring stringlengths 3 2.38k | code stringlengths 9 99.4k |
|---|---|
return a child of p with height no smaller than that of the other child | AVLTree . height AVLTree . right AVLTree . left AVLTree . right AVLTree . left AVLTree . right AVLTree . left AVLTree . right |
set the height of an internal node call back to an avl node | AVLTree . height Math . max AVLTree . height Math . max AVLTree . height |
perform right rotation around the given root and the roots right child | AVLTree . height Math . max AVLTree . height Math . max |
fix a case 4 <unk> | AVLTree . height Math . max |
fix a case one <unk> | AVLTree . height Math . max |
give an avl node current , performs a case one single rotation | AVLTree . height Math . max |
rotate a node with its right child | AVLTree . height Math . max |
recursively insert a data element in the tree | AVLTree . insert AVLTree . difference Math . abs AVLTree . <unk> AVLTree . height Math . max |
insert into a subtree | AVLTree . insert AVLTree . height AVLTree . <unk> AVLTree . <unk> AVLTree . insert AVLTree . <unk> AVLTree . <unk> AVLTree . height AVLTree . max |
recursive insert algorithm <unk> from <unk> <unk> but a fully complete and b keeps track of parent pointers step one : recursively find a place for your object to go that satisfies the <unk> <unk> , this will create a trail of visited nodes on the execution stack | AVLTree . insert AVLTree . height AVLTree . <unk> AVLTree . <unk> AVLTree . insert AVLTree . height AVLTree . <unk> AVLTree . <unk> AVLTree . height Math . max |
insert into a subtree | AVLTree . insert AVLTree . height Comparable . compareTo AVLTree . <unk> AVLTree . <unk> Comparable . compareTo AVLTree . insert AVLTree . height Comparable . compareTo AVLTree . <unk> AVLTree . <unk> AVLTree . height AVLTree . max |
find out if the tree object passed is similar to this tree object | AVLTree . instance AVLTree . cast AVLTree . size AVLTree . size AVLTree . equals |
by default , return the item in the root node throws no such element exception if tree is empty | AVLTree . isEmpty AVLTree . <unk> |
print the tree contents in sorted order | AVLTree . isEmpty AVLTree . <unk> |
return the maximum item in the tree throws no such element exception if tree is empty | AVLTree . isEmpty AVLTree . <unk> |
add a new node into the tree | AVLTree . isEmpty AVLTree . add |
compute the height of the node , recursively | AVLTree . isEmpty AVLTree . getLeft AVLTree . getRight AVLTree . getLeft Math . max |
remove a given element from the tree | AVLTree . isEmpty AVLTree . remove AVLTree . <unk> AVLTree . <unk> |
remove a node n from the tree where n | AVLTree . isEmpty AVLTree . remove |
remove the first item in the avl tree by default , the first item is considered to be the root item | AVLTree . isEmpty AVLTree . remove |
log information about the tree in the given log file | AVLTree . isEmpty BufferedWriter . write AVLTree . <unk> |
get all the elements in the tree that are between the kth element and the <unk> element in the in order sequence | AVLTree . isEmpty LinkedList . <init> |
compute the height of the node , recursively | AVLTree . isLeaf AVLTree . getRight AVLTree . getLeft Math . max |
give a string representation of the binary search tree | AVLTree . iterator Iterator . hasNext Iterator . next String . trim String . substring |
return a string representation of the avl tree | AVLTree . iterator Iterator . next Iterator . hasNext |
return a child of p with height no smaller than that of the other child | AVLTree . left AVLTree . height AVLTree . left AVLTree . right AVLTree . left AVLTree . right |
return whether a node has balance factor between 1 and 1 | AVLTree . left AVLTree . height |
return a child of p with height no smaller than that of the other child | AVLTree . left AVLTree . right AVLTree . height AVLTree . left AVLTree . height AVLTree . left AVLTree . right AVLTree . height AVLTree . right AVLTree . height AVLTree . left AVLTree . isRoot AVLTree . left AVLTree . right |
return a child of p with height no smaller than that of the other child | AVLTree . left AVLTree . right AVLTree . left AVLTree . height AVLTree . left AVLTree . height AVLTree . right AVLTree . height AVLTree . left AVLTree . isRoot AVLTree . parent AVLTree . left AVLTree . right |
rotate binary tree node with right child | AVLTree . max AVLTree . height AVLTree . max |
balance the nodes in the path from the specified node to the root if necessary | AVLTree . path ArrayList < TreeNode > . size AVLTree . <unk> ArrayList < TreeNode > . get AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> |
balance the nodes in the path from the specified node to the root if necessary | AVLTree . path ArrayList < TreeNode > . size ArrayList < TreeNode > . get AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> |
task finds the value to copy up to the target and then removes the copied value | AVLTree . rebalance AVLTree . <unk> AVLTree . removeEntry AVLTree . <unk> AVLTree . rebalance AVLTree . removeEntry |
<unk> un elemento di <unk> key <unk> avl | AVLTree . remove AVLTree . min AVLTree . <unk> AVLTree . balance |
recursively find and remove the element in the avl tree | AVLTree . remove Math . abs AVLTree . <unk> AVLTree . height Math . max |
return whether a node has balance factor between 1 and 1 | AVLTree . right AVLTree . left AVLTree . height |
return a child of p with height no smaller than that of the other child | AVLTree . right AVLTree . left AVLTree . right AVLTree . height AVLTree . right AVLTree . height AVLTree . isRoot AVLTree . left AVLTree . parent AVLTree . left AVLTree . right |
double rotation left right using the given node | AVLTree . rotateLeft AVLTree . rotateRight |
double rotation left right using the given tree | AVLTree . rotateLeft AVLTree . rotateRight |
for avl trees , this is a double rotation for rl | AVLTree . rotateLeft AVLTree . rotateRight |
rotate the tree first left around the specified avl node left child then right around the specified avl node | AVLTree . rotateLeft AVLTree . rotateRight |
double rotation right left using the given node | AVLTree . rotateRight AVLTree . rotateLeft |
double rotation right left using the given tree | AVLTree . rotateRight AVLTree . rotateLeft |
for avl trees , this is a double rotation for <unk> | AVLTree . rotateRight AVLTree . rotateLeft |
rotate the tree first right around the specified avl node right child then left around the specified avl node | AVLTree . rotateRight AVLTree . rotateLeft |
rebalance method called by insert and remove | AVLTree . setHeight AVLTree . parent AVLTree . setHeight AVLTree . <unk> AVLTree . <unk> AVLTree . <unk> AVLTree . left AVLTree . setHeight AVLTree . right AVLTree . setHeight |
add new node into the avl tree | AVLTree . setRoot Node . getKey AVLTree . find Node . getKey Node . <unk> Node . <unk> Node . setParent Node . <unk> AVLTree . <unk> |
delete the object from the tree | AVLTree . size AVLTree . <unk> |
delete the element in a specified entry object from this binary search tree | AVLTree . successor AVLTree . <unk> |
remove a tree | AVLTree . successor AVLTree . <unk> |
insert object into avl tree | AVLTree . toString AVLTree . insert AVLTree . <unk> |
small demo | AVLTree < Integer , Integer > . <init> AVLTree < Integer , Integer > . put AVLTree < Integer , Integer > . size AVLTree < Integer , Integer > . <unk> AVLTree < Integer , Integer > . entryAt Entry < Integer , Integer > . getValue Entry < Integer , Integer > . getKey AVLTree < Integer , Integer > . put AVLTree < Integer ... |
avl tree test | AVLTree < Integer > . <init> AVLTree < Integer > . put |
a avl tree would not normally have a main method , but it is handy here to demonstrate basic functionality | AVLTree < Integer > . <init> Scanner . <init> Scanner . nextInt AVLTree < Integer > . insert AVLTree < Integer > . display Scanner . <init> Scanner . nextInt AVLTree < Integer > . insert AVLTree < Integer > . remove AVLTree < Integer > . display Scanner . nextInt |
return media | AVLTree < Media > . find LinkedList < Media > . getFirst Catalog . <unk> |
do an exact search | AVLTree < Media > . find LinkedList < Media > . iterator Iterator < Media > . hasNext Iterator < Media > . next Media . toString AVLTree < Media > . find LinkedList < Media > . iterator Iterator < Media > . hasNext Iterator < Media > . next Media . toString AVLTree < Media > . find LinkedList < Media > . iterator Itera... |
<unk> a media | AVLTree < Media > . find LinkedList < Media > . size LinkedList < Media > . getFirst Catalog . <unk> |
rethrow the awt error but include the cause | AWTError . <init> AWTError . initCause |
lay out the specified container using this layout | AWTError . <init> Component . getSize Container . getComponents BoxLayout . <unk> Component . getPreferredSize Component . <unk> Component . setSize Component . setLocation Component . getPreferredSize Component . <unk> Component . setSize Component . setLocation |
return the maximum size of the layout <unk> the components in the given container | AWTError . <init> Container . getComponents Component . getMaximumSize Math . max Component . getMaximumSize Math . max Dimension . <init> |
return the minimum size of the layout | AWTError . <init> Container . getComponents Component . getMinimumSize Math . max Component . getMinimumSize Math . max Dimension . <init> |
return the preferred size of the layout | AWTError . <init> Container . getComponents Component . getPreferredSize Math . max Component . getPreferredSize Math . max Dimension . <init> |
generate a modal dialog capable of having either a frame or dialog parent | AWTError . <init> Frame . cast Frame . instance JDialog . <init> Dialog . cast JDialog . <init> |
generate a modal dialog capable of having either a frame or dialog parent | AWTError . <init> Frame . cast JDialog . <init> |
generate a modal dialog capable of having either a frame or dialog parent | AWTError . <init> Frame . instance Frame . cast JDialog . <init> Dialog . cast JDialog . <init> |
generate a modal dialog capable of having either a frame or dialog parent | AWTError . <init> Frame . instance JDialog . <init> Dialog . cast JDialog . <init> |
generate a modal dialog capable of having either a frame or dialog parent | AWTError . <init> Frame . instance JDialog . <init> |
generate a modal dialog capable of having either a frame or dialog parent | AWTError . <init> JDialog . <init> Dialog . cast JDialog . <init> |
set the current clipping area to an arbitrary clip shape | AWTError . <init> Rectangle . cast |
warning this uses 1 | AWTEvent . <init> Method . setAccessible Boolean . cast Boolean . booleanValue |
warning this uses 1 | AWTEvent . <init> Method . setAccessible Method . invoke Boolean . cast Boolean . booleanValue |
dispatch events to listeners registered to this toolkit | AWTEvent . <unk> <unk> . <unk> |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast ComponentEvent . getComponent DefaultKeyboardFocusManager . getFocusOwner AWTEvent . isConsumed ComponentEvent . getComponent Component . isEnabled DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . hasNext Iterator . next <unk> . cast <unk> . <unk> Defaul... |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast ComponentEvent . getComponent DefaultKeyboardFocusManager . getFocusOwner Component . <unk> Component . isShowing AWTEvent . isConsumed ComponentEvent . getComponent DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . hasNext <unk> . <unk> Iterator . next <... |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast ComponentEvent . getComponent DefaultKeyboardFocusManager . getFocusOwner Component . isShowing ComponentEvent . getComponent DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . hasNext <unk> . cast <unk> . <unk> DefaultKeyboardFocusManager . <unk> Componen... |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast ComponentEvent . getComponent DefaultKeyboardFocusManager . getFocusOwner ComponentEvent . getComponent Component . <unk> AWTEvent . isConsumed ComponentEvent . getComponent DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . hasNext <unk> . cast <unk> . <u... |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast ComponentEvent . getComponent DefaultKeyboardFocusManager . getFocusOwner ComponentEvent . getComponent Component . isShowing Component . isEnabled Component . isFocusable AWTEvent . isConsumed ComponentEvent . getComponent DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . i... |
call by dispatch event code if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast ComponentEvent . getComponent DefaultKeyboardFocusManager . getFocusOwner ComponentEvent . getComponent Component . isShowing Component . isFocusable Component . isEnabled ComponentEvent . getComponent DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . has... |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast ComponentEvent . getComponent DefaultKeyboardFocusManager . getFocusOwner ComponentEvent . getComponent DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . hasNext <unk> . <unk> Iterator . next <unk> . <unk> DefaultKeyboardFocusManager . <unk> ComponentEven... |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast DefaultKeyboardFocusManager . getFocusOwner ComponentEvent . getComponent AWTEvent . isConsumed ComponentEvent . getComponent DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . hasNext <unk> . <unk> Iterator . next <unk> . <unk> DefaultKeyboardFocusManager... |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast DefaultKeyboardFocusManager . getFocusOwner ComponentEvent . getComponent Component . isEnabled Component . isFocusable AWTEvent . isConsumed ComponentEvent . getComponent DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . hasNext Iterator . next <unk> . <... |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast DefaultKeyboardFocusManager . getFocusOwner ComponentEvent . getComponent Component . isEnabled DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . hasNext <unk> . <unk> Iterator . next DefaultKeyboardFocusManager . <unk> ComponentEvent . getComponent Compo... |
call by dispatch event if no other key event dispatcher in the dispatcher chain dispatched the <unk> , or if no other key event dispatchers are registered | AWTEvent . cast DefaultKeyboardFocusManager . getFocusOwner ComponentEvent . getComponent Component . isShowing Component . isFocusable Component . isEnabled ComponentEvent . getComponent DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> List . iterator Iterator . hasNext <unk> . <unk> Iterator . ... |
invoke when some action performed | AWTEvent . cast MessageFormat . format |
this method initiates a focus traversal operation if and only if the key event represents a focus traversal key for the specified focused component | AWTEvent . consume Component . <unk> AWTEvent . isConsumed AWTKeyStroke . <unk> AWTKeyStroke . getAWTKeyStroke AWTKeyStroke . getModifiers AWTKeyStroke . <unk> Component . getFocusTraversalKeys Set . contains DefaultKeyboardFocusManager . <unk> AWTEvent . consume AWTEvent . getID Component . getFocusTraversalKeys Set .... |
return a string representation of this event | AWTEvent . getClass AWTEvent . paramString |
dispatch events to listeners registered to this toolkit | AWTEvent . getID <unk> . <unk> <unk> . <unk> |
handler for focus events | AWTEvent . getID <unk> . <unk> |
dispatch events to listeners registered to this toolkit | AWTEvent . getID AWTEvent . <unk> <unk> . <unk> |
return the symbolic name of the given events id | AWTEvent . getID AWTEvent . getClass |
event handling | AWTEvent . getID AWTEvent . getSource AWTEvent . setSource AWTEvent . getID AWTEvent . getSource Component . cast Component . getCursor Component . setCursor Cursor . getDefaultCursor Component . setCursor |
event handling | AWTEvent . getID AWTEvent . getSource AWTEvent . setSource AWTEvent . getID AWTEvent . getSource Component . cast Component . getCursor Component . setCursor |
potentially coalesce an event being posted with an existing event | AWTEvent . getID AWTEvent . getSource MouseEvent . cast InputEvent . getModifiers MouseEvent . cast PaintEvent . cast PaintEvent . <unk> RectangularShape . contains |
override to capture window opening event | AWTEvent . getID AWTEvent . getSource Window . cast |
this method initiates a focus traversal operation if and only if the key event represents a focus traversal key for the specified focused component | AWTEvent . getID AWTEvent . isConsumed AWTKeyStroke . <unk> AWTKeyStroke . getAWTKeyStroke AWTKeyStroke . getModifiers AWTKeyStroke . <unk> Component . getFocusTraversalKeys Set . contains DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> Component . getFocusTraversalKeys Set . contains DefaultKey... |
this method initiates a focus traversal operation if and only if the key event represents a focus traversal key for the specified focused component | AWTEvent . getID AWTEvent . isConsumed AWTKeyStroke . <unk> AWTKeyStroke . getAWTKeyStroke AWTKeyStroke . getModifiers AWTKeyStroke . <unk> Component . getFocusTraversalKeys Set . contains DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> Component . getFocusTraversalKeys Set . contains DefaultKey... |
this method initiates a focus traversal operation if and only if the key event represents a focus traversal key for the specified focused component | AWTEvent . getID AWTEvent . isConsumed AWTKeyStroke . <unk> AWTKeyStroke . getKeyCode AWTKeyStroke . getAWTKeyStroke AWTKeyStroke . getModifiers AWTKeyStroke . <unk> Component . getFocusTraversalKeys Set . contains DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> AWTEvent . getID Component . getF... |
this method initiates a focus traversal operation if and only if the key event represents a focus traversal key for the specified focused component | AWTEvent . getID AWTEvent . isConsumed AWTKeyStroke . <unk> AWTKeyStroke . getKeyCode AWTKeyStroke . getAWTKeyStroke AWTKeyStroke . getModifiers AWTKeyStroke . <unk> Component . getFocusTraversalKeys Set . contains DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> AWTEvent . getID Component . getF... |
this method initiates a focus traversal operation if and only if the key event represents a focus traversal key for the specified focused component | AWTEvent . getID AWTEvent . isConsumed AWTKeyStroke . <unk> AWTKeyStroke . getKeyCode AWTKeyStroke . getAWTKeyStroke AWTKeyStroke . getModifiers AWTKeyStroke . <unk> Component . getFocusTraversalKeys Set . contains DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> Component . getFocusTraversalKeys... |
this method initiates a focus traversal operation if and only if the key event represents a focus traversal key for the specified focused component | AWTEvent . getID AWTEvent . isConsumed AWTKeyStroke . <unk> AWTKeyStroke . getKeyCode AWTKeyStroke . getAWTKeyStroke AWTKeyStroke . getModifiers AWTKeyStroke . <unk> Component . getFocusTraversalKeys Set < AWTKeyStroke > . contains DefaultKeyboardFocusManager . <unk> DefaultKeyboardFocusManager . <unk> AWTEvent . getID... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.