@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
限定符和类型 | 可选元素和说明 |
---|---|
RoundingMode |
roundingMode
Rounded by default
|
String |
value
Specific format reference
DecimalFormat |
public abstract String value
DecimalFormat
public abstract RoundingMode roundingMode
Copyright © 2018–2021 Alibaba Group. All rights reserved.