KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > index > TreeNode


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

5 package org.h2.index;
6
7 import org.h2.result.Row;
8
9 public class TreeNode {
10     int balance;
11     TreeNode left, right, parent;
12     Row row;
13
14     TreeNode(Row row) {
15         this.row = row;
16     }
17
18     boolean isFromLeft() {
19         return parent == null || parent.left == this;
20     }
21
22 }
23
Popular Tags