@Override public String toString() { final StringBuilder sb = new StringBuilder(nodeStack.size() * 10); for (Node node : nodeStack) { sb.append(PATH_SEPARATOR); node.toString(sb); } return sb.toString(); }
@Override public String toString() { final StringBuilder sb = new StringBuilder(nodeStack.size() * 10); for (Node node : nodeStack) { sb.append(PATH_SEPARATOR); node.toString(sb); } return sb.toString(); }
@Override public String toString() { final StringBuilder sb = new StringBuilder(nodeStack.size() * 10); for (Node node : nodeStack) { sb.append(PATH_SEPARATOR); node.toString(sb); } return sb.toString(); }
@Override public String toString() { // CheckStyle:MagicNumber OFF final StringBuilder sb = new StringBuilder(name.length() + 4); // CheckStyle:MagicNumber ON toString(sb); return sb.toString(); }
@Override public String toString() { // CheckStyle:MagicNumber OFF final StringBuilder sb = new StringBuilder(name.length() + 4); // CheckStyle:MagicNumber ON toString(sb); return sb.toString(); }
/** * Removes the last node in the path. * * @return last node in the path or null if no more nodes remain. */ public String popNode() { if (nodeStack.isEmpty()) { return null; } return nodeStack.removeLast().toString(); }
@Override public String toString() { // CheckStyle:MagicNumber OFF final StringBuilder sb = new StringBuilder(name.length() + 4); // CheckStyle:MagicNumber ON toString(sb); return sb.toString(); }
/** * Examines the last node in the path without removing it. * * @return last node in the path or null if no nodes remain */ public String peekNode() { return nodeStack.peek().toString(); }
/** * Removes the last node in the path. * * @return last node in the path or null if no more nodes remain. */ public String popNode() { if (nodeStack.isEmpty()) { return null; } return nodeStack.removeLast().toString(); }
/** * Removes the last node in the path. * * @return last node in the path or null if no more nodes remain. */ public String popNode() { if (nodeStack.isEmpty()) { return null; } return nodeStack.removeLast().toString(); }
/** * Examines the last node in the path without removing it. * * @return last node in the path or null if no nodes remain */ public String peekNode() { return nodeStack.peek().toString(); }
/** * Examines the last node in the path without removing it. * * @return last node in the path or null if no nodes remain */ public String peekNode() { return nodeStack.peek().toString(); }