Hi, when you want to avoid using Exceptions for control flow:
Value getValue(Node node, String name) ... {
if (node.hasProperty(name)) {
return node.getProperty(name).getValue();
} else {
return null;
}
}
Thomas
Hi, when you want to avoid using Exceptions for control flow:
Value getValue(Node node, String name) ... {
if (node.hasProperty(name)) {
return node.getProperty(name).getValue();
} else {
return null;
}
}
Thomas