@Test public void testGetChildrenLabels(){ Assert.assertTrue(labelNode.getChildrenLabels().isEmpty()); addLabelNodesForTest(labelNode); Assert.assertEquals(2, labelNode.getChildrenLabels().size()); }
public Set<String> getChildrenLabels() { Set<String> labels = new HashSet<String>(); for (LabelNode child : childrenNodes) { labels.add(child.getName()); } return labels; }
LabelNodeImpl implements LabelNode, Serializable { public Set<String> getChildrenLabels() { Set<String> labels = new HashSet<String>(); for (LabelNode child : childrenNodes) { labels.add(child.getName()); } return labels; } }
LabelNodeImpl implements LabelNode, Serializable { public Set<String> getChildrenLabels() { Set<String> labels = new HashSet<String>(); for (LabelNode child : childrenNodes) { labels.add(child.getName()); } return labels; } LabelNodeImpl(String name); @SuppressWarnings("unused") private  LabelNodeImpl(); }
LabelNodeImpl implements LabelNode, Serializable { public Set<String> getChildrenLabels() { Set<String> labels = new HashSet<String>(); for (LabelNode child : childrenNodes) { labels.add(child.getName()); } return labels; } LabelNodeImpl(String name); @SuppressWarnings("unused") private  LabelNodeImpl(); boolean addChildNode(LabelNode node); boolean removeChildNode(LabelNode node); Set<String> getChildrenLabels(); Set<String> getDescendantLabels(); Set<LabelNode> getChildren(); String getName(); LabelNode getParent(); boolean hasChildren(); boolean hasParent(); @Override int hashCode(); @Override boolean equals(Object obj); }
LabelNodeImpl implements LabelNode, Serializable { public Set<String> getChildrenLabels() { Set<String> labels = new HashSet<String>(); for (LabelNode child : childrenNodes) { labels.add(child.getName()); } return labels; } LabelNodeImpl(String name); @SuppressWarnings("unused") private  LabelNodeImpl(); boolean addChildNode(LabelNode node); boolean removeChildNode(LabelNode node); Set<String> getChildrenLabels(); Set<String> getDescendantLabels(); Set<LabelNode> getChildren(); String getName(); LabelNode getParent(); boolean hasChildren(); boolean hasParent(); @Override int hashCode(); @Override boolean equals(Object obj);  }