hasLabel method for mindmap

This commit is contained in:
Ezequiel Bergamaschi 2014-01-29 03:59:05 -03:00 committed by Ezequiel Bergamaschi
parent 7d9ccaec91
commit 684c412e95

View File

@ -317,4 +317,13 @@ public class Mindmap {
return result;
}
public boolean hasLabel(@NotNull final String name) {
for (Label label : this.labels) {
if (label.getTitle().equals(name)) {
return true;
}
}
return false;
}
}