mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-19 07:11:14 +00:00
Pattern#not
This commit is contained in:
+4
@@ -12,4 +12,8 @@ public interface Pattern {
|
|||||||
default Pattern or(Pattern that) {
|
default Pattern or(Pattern that) {
|
||||||
return (y, column) -> this.matches(y, column) || that.matches(y, column);
|
return (y, column) -> this.matches(y, column) || that.matches(y, column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default Pattern not() {
|
||||||
|
return (y, column) -> !this.matches(y, column);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user