Class SlardarNumberProp
-
- All Implemented Interfaces:
@ConfigurationProperties(value = SlardarNumberProp.Key) public class SlardarNumberProp
Customizable precision and format of Number, support JsonFormat pattern. Must use BigDecimal instead of Float and Double to avoid precision loss.
- Since:
2021-02-14
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSlardarNumberProp.Nf
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic SlardarNumberProp.Nfintegerpublic SlardarNumberProp.Nffloatspublic SlardarNumberProp.Nfdecimal
-
Constructor Summary
Constructors Constructor Description SlardarNumberProp()
-
Method Summary
Modifier and Type Method Description SlardarNumberProp.NfgetInteger()format of Integer, Long. voidsetInteger(SlardarNumberProp.Nf integer)format of Integer, Long. SlardarNumberProp.NfgetFloats()Float, Double voidsetFloats(SlardarNumberProp.Nf floats)Float, Double SlardarNumberProp.NfgetDecimal()BigDecimal, BigInteger voidsetDecimal(SlardarNumberProp.Nf decimal)BigDecimal, BigInteger booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
Method Detail
-
getInteger
SlardarNumberProp.Nf getInteger()
format of Integer, Long. `empty` means disable. The thousandth separator uses `,`, which can be replaced to other at runtime according to the separator setting.
-
setInteger
void setInteger(SlardarNumberProp.Nf integer)
format of Integer, Long. `empty` means disable. The thousandth separator uses `,`, which can be replaced to other at runtime according to the separator setting.
-
getFloats
SlardarNumberProp.Nf getFloats()
Float, Double
-
setFloats
void setFloats(SlardarNumberProp.Nf floats)
Float, Double
-
getDecimal
SlardarNumberProp.Nf getDecimal()
BigDecimal, BigInteger
-
setDecimal
void setDecimal(SlardarNumberProp.Nf decimal)
BigDecimal, BigInteger
-
hashCode
int hashCode()
-
-
-
-