Package io.tech1.framework.domain.tuples
Class TuplePercentage
- java.lang.Object
-
- io.tech1.framework.domain.tuples.TuplePercentage
-
public class TuplePercentage extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)BigDecimalgetPercentage()BigDecimalgetValue()inthashCode()static TuplePercentageof(BigDecimal value, BigDecimal percentage)static TuplePercentageof(BigDecimal value, BigDecimal maxValue, int valueScale, int percentageScale)static TuplePercentageoneHundred()static TuplePercentageprogressTuplePercentage(long value, long maxValue)static TuplePercentageprogressTuplePercentage(BigDecimal value, BigDecimal maxValue)StringtoString()static TuplePercentagezero()
-
-
-
Method Detail
-
of
public static TuplePercentage of(BigDecimal value, BigDecimal maxValue, int valueScale, int percentageScale)
-
progressTuplePercentage
public static TuplePercentage progressTuplePercentage(BigDecimal value, BigDecimal maxValue)
-
progressTuplePercentage
public static TuplePercentage progressTuplePercentage(long value, long maxValue)
-
zero
public static TuplePercentage zero()
-
oneHundred
public static TuplePercentage oneHundred()
-
of
public static TuplePercentage of(BigDecimal value, BigDecimal percentage)
-
getValue
public BigDecimal getValue()
-
getPercentage
public BigDecimal getPercentage()
-
canEqual
protected boolean canEqual(Object other)
-
-