@Test public void testToString() throws Exception { Node node = new CharSequenceNodeLeafWithValue("FOO", 1); Assert.assertEquals("Node{edge=FOO, value=1, edges=[]}", node.toString()); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Node{"); sb.append("edge=").append(incomingEdgeCharSequence); sb.append(", value=").append(value); sb.append(", edges=[]"); sb.append("}"); return sb.toString(); }
CharSequenceNodeLeafWithValue implements Node { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Node{"); sb.append("edge=").append(incomingEdgeCharSequence); sb.append(", value=").append(value); sb.append(", edges=[]"); sb.append("}"); return sb.toString(); } }
CharSequenceNodeLeafWithValue implements Node { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Node{"); sb.append("edge=").append(incomingEdgeCharSequence); sb.append(", value=").append(value); sb.append(", edges=[]"); sb.append("}"); return sb.toString(); } CharSequenceNodeLeafWithValue(CharSequence edgeCharSequence, Object value); }
CharSequenceNodeLeafWithValue implements Node { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Node{"); sb.append("edge=").append(incomingEdgeCharSequence); sb.append(", value=").append(value); sb.append(", edges=[]"); sb.append("}"); return sb.toString(); } CharSequenceNodeLeafWithValue(CharSequence edgeCharSequence, Object value); @Override CharSequence getIncomingEdge(); @Override Character getIncomingEdgeFirstCharacter(); @Override Object getValue(); @Override Node getOutgoingEdge(Character edgeFirstCharacter); @Override void updateOutgoingEdge(Node childNode); @Override List<Node> getOutgoingEdges(); @Override String toString(); }
CharSequenceNodeLeafWithValue implements Node { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Node{"); sb.append("edge=").append(incomingEdgeCharSequence); sb.append(", value=").append(value); sb.append(", edges=[]"); sb.append("}"); return sb.toString(); } CharSequenceNodeLeafWithValue(CharSequence edgeCharSequence, Object value); @Override CharSequence getIncomingEdge(); @Override Character getIncomingEdgeFirstCharacter(); @Override Object getValue(); @Override Node getOutgoingEdge(Character edgeFirstCharacter); @Override void updateOutgoingEdge(Node childNode); @Override List<Node> getOutgoingEdges(); @Override String toString();  }