@Target(value=FIELD) @Retention(value=RUNTIME) @Inherited public @interface NumberFormat
write: It can be used on classes that inherit Number
read: It can be used on classes String
| Modifier and Type | Optional Element and Description |
|---|---|
RoundingMode |
roundingMode
Rounded by default
|
String |
value
Specific format reference
DecimalFormat |
public abstract String value
DecimalFormatpublic abstract RoundingMode roundingMode
Copyright © 2018–2023 Alibaba Group. All rights reserved.