Package nxt.util
Class FixedPrecisionPercentage
java.lang.Object
nxt.util.FixedPrecisionPercentage
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlongcalcPercentageOfAmount(long amount) intcompareTo(int other) booleanstatic FixedPrecisionPercentagefromBigDecimal(BigDecimal decimalVal) inthashCode()static FixedPrecisionPercentagestatic FixedPrecisionPercentagestatic intsetToPreparedStatement(FixedPrecisionPercentage percentage, PreparedStatement pstmt, int i) toString()booleanvalidate()void
-
Field Details
-
RW
-
-
Method Details
-
fromBigDecimal
-
read
-
read
- Throws:
SQLException
-
write
-
setToPreparedStatement
public static int setToPreparedStatement(FixedPrecisionPercentage percentage, PreparedStatement pstmt, int i) throws SQLException - Throws:
SQLException
-
compareTo
public int compareTo(int other) -
validate
public boolean validate() -
calcPercentageOfAmount
public long calcPercentageOfAmount(long amount) -
toString
-
equals
-
hashCode
public int hashCode()
-