has method

bool has(
  1. TarFormat other
)

Returns if other is a possible resolution of this.

For example, a TarFormat with a value of 6 means that we do not have enough information to determine if it is TarFormat.ustar or TarFormat.pax, so either of them could be possible resolutions of this.

Implementation

bool has(TarFormat other) => _value & other._value != 0;