Example #1
0
  // Method:
  // Get the IDs of direct upwards related nodes
  public String getThreadIDs(String relation) {

    // Test if we reach ROOT parent
    if (null == parent_) {

      return relation;
    } else {

      return parent_.getThreadIDs(postId_ + "#" + sender_ + "#" + subject_ + ":" + relation);
    }
  }
Example #2
0
  // Method:
  public void incrementReplyCount() {

    replies_++;

    // Also increment all parents and test
    // for when to stop at root node whose parent is null
    if (null != parent_) {

      parent_.incrementReplyCount();
    }
  }