1 8 package org.ozoneDB.collections; 9 10 14 public class _NodeTreeMap_OzoneNodeImpl extends _AbstractOzoneMap_AbstractOzoneNode implements _NodeTreeMap_OzoneNode { 15 16 private static final long serialVersionUID = 1L; 17 18 private int color; 19 20 private BaseTreeMap.Node left = BaseTreeMapImpl.nilNode; 21 22 private BaseTreeMap.Node right = BaseTreeMapImpl.nilNode; 23 24 private BaseTreeMap.Node parent = BaseTreeMapImpl.nilNode; 25 26 public _NodeTreeMap_OzoneNodeImpl(Object key, Object value, int color) { 27 super(key, value); 28 setColor(color); 29 } 30 31 public void setRight(BaseTreeMap.Node right) { 32 this.right = right; 33 } 34 35 public void setParent(BaseTreeMap.Node parent) { 36 this.parent = parent; 37 } 38 39 public void setLeft(BaseTreeMap.Node left) { 40 this.left = left; 41 } 42 43 public void setColor(int color) { 44 this.color = color; 45 } 46 47 public BaseTreeMap.Node getRight() { 48 return right; 49 } 50 51 public BaseTreeMap.Node getParent() { 52 return parent; 53 } 54 55 public BaseTreeMap.Node getLeft() { 56 return left; 57 } 58 59 public int getColor() { 60 return color; 61 } 62 63 public boolean isNil() { 64 return false; 65 } 66 67 } | Popular Tags |