Home | History | Annotate | Download | only in time

Lines Matching defs:amount

89      * The amount of the period.
91 private final long amount;
98 * Obtains a {@code MockSimplePeriod} from an amount and unit.
102 * @param amount the amount of the period, measured in terms of the unit, positive or negative
107 public static MockSimplePeriod of(long amount, TemporalUnit unit) {
108 return new MockSimplePeriod(amount, unit);
111 private MockSimplePeriod(long amount, TemporalUnit unit) {
116 this.amount = amount;
132 return amount;
142 return temporal.plus(amount, unit);
147 return temporal.minus(amount, unit);
156 return Long.compare(amount, otherPeriod.amount);
166 return this.amount == other.amount &&
174 return unit.hashCode() ^ (int) (amount ^ (amount >>> 32));
179 return amount + " " + unit;