/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds relative to an * instant. * * <p>If the milliseconds is positive, then the instant is treated as a * "start instant". If negative, the instant is treated as an "end * instant". * * <p>The default implementation returns * <code>Utils.safeToInt(getAsLong(millisDuration, instant))</code>. * * @param duration the milliseconds to query, which may be negative * @param instant the start instant to calculate relative to * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration, long instant) { return FieldUtils.safeToInt(getValueAsLong(duration, instant)); }
/** * Get the value of this field from the milliseconds relative to an * instant. * * <p>If the milliseconds is positive, then the instant is treated as a * "start instant". If negative, the instant is treated as an "end * instant". * * <p>The default implementation returns * <code>Utils.safeToInt(getAsLong(millisDuration, instant))</code>. * * @param duration the milliseconds to query, which may be negative * @param instant the start instant to calculate relative to * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration, long instant) { return FieldUtils.safeToInt(getValueAsLong(duration, instant)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds relative to an * instant. * * <p>If the milliseconds is positive, then the instant is treated as a * "start instant". If negative, the instant is treated as an "end * instant". * * <p>The default implementation returns * <code>Utils.safeToInt(getAsLong(millisDuration, instant))</code>. * * @param duration the milliseconds to query, which may be negative * @param instant the start instant to calculate relative to * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration, long instant) { return FieldUtils.safeToInt(getValueAsLong(duration, instant)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds, which is approximate * if this field is imprecise. * * @param duration the milliseconds to query, which may be negative * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration) { return FieldUtils.safeToInt(getValueAsLong(duration)); }
/** * Get the value of this field from the milliseconds relative to an * instant. * * <p>If the milliseconds is positive, then the instant is treated as a * "start instant". If negative, the instant is treated as an "end * instant". * * <p>The default implementation returns * <code>Utils.safeToInt(getAsLong(millisDuration, instant))</code>. * * @param duration the milliseconds to query, which may be negative * @param instant the start instant to calculate relative to * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration, long instant) { return FieldUtils.safeToInt(getValueAsLong(duration, instant)); }
/** * Get the value of this field from the milliseconds relative to an * instant. * * <p>If the milliseconds is positive, then the instant is treated as a * "start instant". If negative, the instant is treated as an "end * instant". * * <p>The default implementation returns * <code>Utils.safeToInt(getAsLong(millisDuration, instant))</code>. * * @param duration the milliseconds to query, which may be negative * @param instant the start instant to calculate relative to * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration, long instant) { return FieldUtils.safeToInt(getValueAsLong(duration, instant)); }
/** * Get the value of this field from the milliseconds relative to an * instant. * * <p>If the milliseconds is positive, then the instant is treated as a * "start instant". If negative, the instant is treated as an "end * instant". * * <p>The default implementation returns * <code>Utils.safeToInt(getAsLong(millisDuration, instant))</code>. * * @param duration the milliseconds to query, which may be negative * @param instant the start instant to calculate relative to * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration, long instant) { return FieldUtils.safeToInt(getValueAsLong(duration, instant)); }
/** * Get the value of this field from the milliseconds relative to an * instant. * * <p>If the milliseconds is positive, then the instant is treated as a * "start instant". If negative, the instant is treated as an "end * instant". * * <p>The default implementation returns * <code>Utils.safeToInt(getAsLong(millisDuration, instant))</code>. * * @param duration the milliseconds to query, which may be negative * @param instant the start instant to calculate relative to * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration, long instant) { return FieldUtils.safeToInt(getValueAsLong(duration, instant)); }
/** * Get the value of this field from the milliseconds relative to an * instant. * * <p>If the milliseconds is positive, then the instant is treated as a * "start instant". If negative, the instant is treated as an "end * instant". * * <p>The default implementation returns * <code>Utils.safeToInt(getAsLong(millisDuration, instant))</code>. * * @param duration the milliseconds to query, which may be negative * @param instant the start instant to calculate relative to * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration, long instant) { return FieldUtils.safeToInt(getValueAsLong(duration, instant)); }
/** * Get the value of this field from the milliseconds relative to an * instant. * * <p>If the milliseconds is positive, then the instant is treated as a * "start instant". If negative, the instant is treated as an "end * instant". * * <p>The default implementation returns * <code>Utils.safeToInt(getAsLong(millisDuration, instant))</code>. * * @param duration the milliseconds to query, which may be negative * @param instant the start instant to calculate relative to * @return the value of the field, in the units of the field, which may be * negative */ public int getValue(long duration, long instant) { return FieldUtils.safeToInt(getValueAsLong(duration, instant)); }