196197198199200201202203204
return !noColorSetted; } public boolean isBlack() throws RBTException { if (noColorSetted) { throw new RBTException(COLOR_NOT_SET + "\n" + toString()); } return color == RedBlackTree.BLACK; }
208209210211212213214215216
color = RedBlackTree.BLACK; } public boolean isRed() throws RBTException { if (noColorSetted) { throw new RBTException(COLOR_NOT_SET + "\n" + toString()); } return color == RedBlackTree.RED; }
256257258259260261262263264
return false; } public boolean getColor() throws RBTException {// NOPMD color is a value if (noColorSetted) { throw new RBTException(COLOR_NOT_SET + "\n" + toString()); } return color; }
360361362363364365366367368369
localCheckLoaded(); if (!node.isColorSetted() || !node.isBlack()) { try { setStateHaveChanged(); } catch (HeapRecordableException exception) { throw new RBTException(exception); } } node.setBlack(); }
372373374375376377378379380381
localCheckLoaded(); if (!node.isColorSetted() || node.getColor() != color) { try { setStateHaveChanged(); } catch (HeapRecordableException exception) { throw new RBTException(exception); } } node.setColor(color); }
384385386387388389390391392393
localCheckLoaded(); if (this.node.getLeft() != node) { try { setStateHaveChanged(); } catch (HeapRecordableException exception) { throw new RBTException(exception); } } this.node.setLeft(node); }
396397398399400401402403404405
localCheckLoaded(); if (node.getNumberOfChild() != numberOfChild) { try { setStateHaveChanged(); } catch (HeapRecordableException exception) { throw new RBTException(exception); } } node.setNumberOfChild(numberOfChild); }
423424425426427428429430
public void decrementNumberOfChild() throws RBTException { node.decrementNumberOfChild(); try { setStateHaveChanged(); } catch (HeapRecordableException exception) { throw new RBTException(exception); } }
433434435436437438439440
public void incrementNumberOfChild() throws RBTException { node.incrementNumberOfChild(); try { setStateHaveChanged(); } catch (HeapRecordableException exception) { throw new RBTException(exception); } }
443444445446447448449450451452
localCheckLoaded(); if (this.node.getParent() != node) { try { setStateHaveChanged(); } catch (HeapRecordableException exception) { throw new RBTException(exception); } } this.node.setParent(node); }