Skip to content

Commit

Permalink
Add alternative raw value ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
Krakenied committed Aug 9, 2023
1 parent 0d81659 commit 8642fec
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -16,6 +16,10 @@ public TaskConstraintSet(final @NotNull TaskConstraint... constraints) {
this.rawValue = rawValue;
}

public TaskConstraintSet(final int rawValue) {
this.rawValue = rawValue;
}

public boolean contains(final @NotNull TaskConstraint constraint) {
return (this.rawValue & constraint.getValue()) != 0;
}
Expand Down

0 comments on commit 8642fec

Please sign in to comment.