@Test public void testIsHierarchy(){ Assert.assertTrue(metaData.isHierarchy()); metaData.removeLabelNode(HIERARCHY_ROOT_NODE_NAME); Assert.assertFalse(metaData.isHierarchy()); }
public boolean isHierarchy() { return (allLabelNodes.size() == rootLabelNodes.size()) ? false : true; }
LabelsMetaDataImpl implements LabelsMetaData, Serializable, Externalizable { public boolean isHierarchy() { return (allLabelNodes.size() == rootLabelNodes.size()) ? false : true; } }
LabelsMetaDataImpl implements LabelsMetaData, Serializable, Externalizable { public boolean isHierarchy() { return (allLabelNodes.size() == rootLabelNodes.size()) ? false : true; } LabelsMetaDataImpl(); }
LabelsMetaDataImpl implements LabelsMetaData, Serializable, Externalizable { public boolean isHierarchy() { return (allLabelNodes.size() == rootLabelNodes.size()) ? false : true; } LabelsMetaDataImpl(); void addRootNode(LabelNode rootNode); LabelNode getLabelNode(String labelName); Set<String> getLabelNames(); boolean containsLabel(String labelName); boolean isHierarchy(); int getNumLabels(); Set<LabelNode> getRootLabels(); @SuppressWarnings("unchecked") @Override LabelsMetaData clone(); int removeLabelNode(String labelName); @SuppressWarnings("unchecked") @Override void readExternal(ObjectInput in); @Override void writeExternal(ObjectOutput out); }
LabelsMetaDataImpl implements LabelsMetaData, Serializable, Externalizable { public boolean isHierarchy() { return (allLabelNodes.size() == rootLabelNodes.size()) ? false : true; } LabelsMetaDataImpl(); void addRootNode(LabelNode rootNode); LabelNode getLabelNode(String labelName); Set<String> getLabelNames(); boolean containsLabel(String labelName); boolean isHierarchy(); int getNumLabels(); Set<LabelNode> getRootLabels(); @SuppressWarnings("unchecked") @Override LabelsMetaData clone(); int removeLabelNode(String labelName); @SuppressWarnings("unchecked") @Override void readExternal(ObjectInput in); @Override void writeExternal(ObjectOutput out);  }