has method

bool has(
  1. ValidationTrigger other
)

Implementation

bool has(ValidationTrigger other) {
  return (value & other.value) == other.value;
}