operator < method

bool operator <(
  1. AnnualDate rhs
)

Compares two annual dates to see if the left one is strictly earlier than the right one.

  • this: First operand of the comparison
  • rhs: Second operand of the comparison

Returns: true if the this is strictly earlier than this, false otherwise.

  • ArgumentException: The calendar system of this is not the same as the calendar of this.

Implementation

bool operator <(AnnualDate rhs) {
  return compareTo(rhs) < 0;
}