public boolean containNode(String otherNode) {
    for (String node : nodes) {
      if (node.equals(otherNode)) {
        return true;
      }
    }
    return false;
  }
This PartialPath represents for full device path
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PartialPath.java