-
public final class PercentDecimal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPercentDecimal.Companion
-
Constructor Summary
Constructors Constructor Description PercentDecimal(Float decimal)
-
Method Summary
Modifier and Type Method Description final FloatgetDecimal()final BooleanisLessThanHundredPercent()final BooleanisMoreThanZeroPercent()final IntegertoPercentage()-
-
Constructor Detail
-
PercentDecimal
PercentDecimal(Float decimal)
- Parameters:
decimal- A percent represented as aDoubledecimal value in the range of 0, 1.
-
-
Method Detail
-
getDecimal
final Float getDecimal()
-
isLessThanHundredPercent
final Boolean isLessThanHundredPercent()
-
isMoreThanZeroPercent
final Boolean isMoreThanZeroPercent()
-
toPercentage
final Integer toPercentage()
-
-
-
-