operator < method

bool operator <(
  1. Quantity<T> other
)

Checks if this quantity's magnitude is less than another's.

Implementation

bool operator <(Quantity<T> other) => compareTo(other) < 0;