public function valueMatchesBitmask($mask)
    {
        if (!is_integer($this->value())) {
            throw new Exception\NonIntegerValueException($this->value());
        }

        return $this->value() === ($this->value() & $mask);
    }