encompasses method

bool encompasses(
  1. QuantityRange<Q> range2
)

True only if this range completely encompasses range2.

Implementation

bool encompasses(QuantityRange<Q> range2) => (minValue <= range2.minValue) && (maxValue >= range2.maxValue);