operator < method

bool operator <(
  1. Object compare
)

Compare this YearMonth is lesser than compare

Implementation

bool operator <(Object compare) =>
    _checkCompreObject(compare) && (compare as YearMonth).compareTo(this) < 0;