/** * Returns {@code true} if {@code left} is less than {@code right}. * * @param left The instance to compare to {@code right}. * @param right The instance to compare to {@code left}. * @return {@code true} if {@code left} is less than {@code right}; otherwise, {@code false}. */ @CS2JInfo( "This method implements the functionality of the overloaded operator: 'System.Boolean <(YearMonthDay,YearMonthDay)'") public static boolean lessThan(YearMonthDay left, YearMonthDay right) { return left.compareTo(right) < 0; }
/** * Returns {@code true} if {@code left} is greater than or equal to {@code right}. * * @param left The instance to compare to {@code right}. * @param right The instance to compare to {@code left}. * @return {@code true} if {@code left} is greater than or equal to {@code right}; otherwise, * {@code false}. */ @CS2JInfo( "This method implements the functionality of the overloaded operator: 'System.Boolean >=(YearMonthDay,YearMonthDay)'") public static boolean greaterThanOrEqual(YearMonthDay left, YearMonthDay right) { return left.compareTo(right) >= 0; }
/** * Returns {@code true} if the two instances are not exactly equal. * * @param left The instance to compare to {@code right}. * @param right The instance to compare to {@code left}. * @return {@code true} if {@code left} does not represent the same value as {@code right}; * otherwise, {@code false}. */ @CS2JInfo( "This method implements the functionality of the overloaded operator: 'System.Boolean !=(YearMonthDay,YearMonthDay)'") public static boolean notEquals(YearMonthDay left, YearMonthDay right) { return !left.equalsType(right); }