コード例 #1
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;
 }
コード例 #2
0
 /**
  * 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;
 }