gpt4 book ai didi

org.joda.time.Years.plus()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 16:48:40 26 4
gpt4 key购买 nike

本文整理了Java中org.joda.time.Years.plus()方法的一些代码示例,展示了Years.plus()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Years.plus()方法的具体详情如下:
包路径:org.joda.time.Years
类名称:Years
方法名:plus

Years.plus介绍

[英]Returns a new instance with the specified number of years added.

This instance is immutable and unaffected by this method call.
[中]返回添加了指定年数的新实例。
此实例是不可变的,不受此方法调用的影响。

代码示例

代码示例来源:origin: joda-time/joda-time

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: joda-time/joda-time

/**
 * Returns a new instance with the specified number of years added.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to add, may be negative, null means zero
 * @return the new period plus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years plus(Years years) {
  if (years == null) {
    return this;
  }
  return plus(years.getValue());
}

代码示例来源:origin: JodaOrg/joda-time

/**
 * Returns a new instance with the specified number of years added.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to add, may be negative, null means zero
 * @return the new period plus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years plus(Years years) {
  if (years == null) {
    return this;
  }
  return plus(years.getValue());
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Returns a new instance with the specified number of years added.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to add, may be negative, null means zero
 * @return the new period plus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years plus(Years years) {
  if (years == null) {
    return this;
  }
  return plus(years.getValue());
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: redfish64/TinyTravelTracker

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: org.joda/com.springsource.org.joda.time

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: Nextdoor/bender

/**
 * Returns a new instance with the specified number of years taken away.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to take away, may be negative
 * @return the new period minus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years minus(int years) {
  return plus(FieldUtils.safeNegate(years));
}

代码示例来源:origin: redfish64/TinyTravelTracker

/**
 * Returns a new instance with the specified number of years added.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to add, may be negative, null means zero
 * @return the new period plus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years plus(Years years) {
  if (years == null) {
    return this;
  }
  return plus(years.getValue());
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Returns a new instance with the specified number of years added.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to add, may be negative, null means zero
 * @return the new period plus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years plus(Years years) {
  if (years == null) {
    return this;
  }
  return plus(years.getValue());
}

代码示例来源:origin: Nextdoor/bender

/**
 * Returns a new instance with the specified number of years added.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to add, may be negative, null means zero
 * @return the new period plus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years plus(Years years) {
  if (years == null) {
    return this;
  }
  return plus(years.getValue());
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Returns a new instance with the specified number of years added.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to add, may be negative, null means zero
 * @return the new period plus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years plus(Years years) {
  if (years == null) {
    return this;
  }
  return plus(years.getValue());
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Returns a new instance with the specified number of years added.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to add, may be negative, null means zero
 * @return the new period plus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years plus(Years years) {
  if (years == null) {
    return this;
  }
  return plus(years.getValue());
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time

/**
 * Returns a new instance with the specified number of years added.
 * <p>
 * This instance is immutable and unaffected by this method call.
 *
 * @param years  the amount of years to add, may be negative, null means zero
 * @return the new period plus the specified number of years
 * @throws ArithmeticException if the result overflows an int
 */
public Years plus(Years years) {
  if (years == null) {
    return this;
  }
  return plus(years.getValue());
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com