Uses of Class
de.xima.fc.common.bean_models.ETimeUnit
-
Packages that use ETimeUnit Package Description de.xima.fc.common.bean_models de.xima.fc.validation.constraints -
-
Uses of ETimeUnit in de.xima.fc.common.bean_models
Methods in de.xima.fc.common.bean_models that return ETimeUnit Modifier and Type Method Description ETimeUnit
TimeDuration. getUnit()
Gets the unit of time for the duration.static ETimeUnit
ETimeUnit. valueOf(String name)
Returns the enum constant of this type with the specified name.static ETimeUnit[]
ETimeUnit. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in de.xima.fc.common.bean_models with parameters of type ETimeUnit Modifier and Type Method Description BigDecimal
ETimeUnit. convertToBigDecimal(long duration, ETimeUnit targetUnit, MathContext mathContext)
Converts the given duration to the given unit.BigInteger
ETimeUnit. convertToBigInt(long duration, ETimeUnit targetUnit)
Converts the given duration to the given unit.double
ETimeUnit. convertToDouble(long duration, ETimeUnit targetUnit)
Converts the given duration to the given unit.long
ETimeUnit. convertToLong(long duration, ETimeUnit targetUnit)
Converts the given duration to the given unit.static TimeDuration
TimeDuration. of(Long duration, ETimeUnit unit)
Creates a new instance ofTimeDuration
with the given duration and unit of time.static TimeDuration
TimeDuration. ofEmpty(ETimeUnit unit)
Creates a new instance ofTimeDuration
with no duration and the given unit of time.void
TimeDuration. setUnit(ETimeUnit unit)
Sets the unit of time for the duration.long
TimeDuration. to(ETimeUnit targetUnit)
Converts the duration to the given unit of time. -
Uses of ETimeUnit in de.xima.fc.validation.constraints
Methods in de.xima.fc.validation.constraints that return ETimeUnit Modifier and Type Method Description ETimeUnit
unit()
ETimeUnit
unit()
-