ValueConstraint () { return switch (this) { case NULL_VALUE -> NOT_NULL_VALUE; case NOT_NULL_VALUE -> NULL_VALUE; case TRUE_VALUE -> FALSE_VALUE; case FALSE_VALUE -> TRUE_VALUE; default -> throw new IllegalStateException("ValueConstraint = " + this); }; }