[New] Added Selection.not() to return inversion of selection

This commit is contained in:
Robert von Burg 2017-05-01 17:39:04 +02:00
parent f331babd3d
commit ae0fba00ca
1 changed files with 4 additions and 0 deletions

View File

@ -23,4 +23,8 @@ public interface Selection {
public void accept(QueryVisitor visitor);
public boolean hasSelection();
public default Selection not() {
return new NotSelection(this);
}
}