Package net.sf.joafip.redblacktree.service

Examples of net.sf.joafip.redblacktree.service.RBTException


    return !noColorSetted;
  }

  public boolean isBlack() throws RBTException {
    if (noColorSetted) {
      throw new RBTException(COLOR_NOT_SET + "\n" + toString());
    }
    return color == RedBlackTree.BLACK;
  }
View Full Code Here


    color = RedBlackTree.BLACK;
  }

  public boolean isRed() throws RBTException {
    if (noColorSetted) {
      throw new RBTException(COLOR_NOT_SET + "\n" + toString());
    }
    return color == RedBlackTree.RED;
  }
View Full Code Here

    return false;
  }

  public boolean getColor() throws RBTException {// NOPMD color is a value
    if (noColorSetted) {
      throw new RBTException(COLOR_NOT_SET + "\n" + toString());
    }
    return color;
  }
View Full Code Here

    localCheckLoaded();
    if (!node.isColorSetted() || !node.isBlack()) {
      try {
        setStateHaveChanged();
      } catch (HeapRecordableException exception) {
        throw new RBTException(exception);
      }
    }
    node.setBlack();
  }
View Full Code Here

    localCheckLoaded();
    if (!node.isColorSetted() || node.getColor() != color) {
      try {
        setStateHaveChanged();
      } catch (HeapRecordableException exception) {
        throw new RBTException(exception);
      }
    }
    node.setColor(color);
  }
View Full Code Here

    localCheckLoaded();
    if (this.node.getLeft() != node) {
      try {
        setStateHaveChanged();
      } catch (HeapRecordableException exception) {
        throw new RBTException(exception);
      }
    }
    this.node.setLeft(node);
  }
View Full Code Here

    localCheckLoaded();
    if (node.getNumberOfChild() != numberOfChild) {
      try {
        setStateHaveChanged();
      } catch (HeapRecordableException exception) {
        throw new RBTException(exception);
      }
    }
    node.setNumberOfChild(numberOfChild);
  }
View Full Code Here

  public void decrementNumberOfChild() throws RBTException {
    node.decrementNumberOfChild();
    try {
      setStateHaveChanged();
    } catch (HeapRecordableException exception) {
      throw new RBTException(exception);
    }
  }
View Full Code Here

  public void incrementNumberOfChild() throws RBTException {
    node.incrementNumberOfChild();
    try {
      setStateHaveChanged();
    } catch (HeapRecordableException exception) {
      throw new RBTException(exception);
    }
  }
View Full Code Here

    localCheckLoaded();
    if (this.node.getParent() != node) {
      try {
        setStateHaveChanged();
      } catch (HeapRecordableException exception) {
        throw new RBTException(exception);
      }
    }
    this.node.setParent(node);
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.redblacktree.service.RBTException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.