public class NacosCustomBooleanEditor extends PropertyEditorSupport
| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
allowEmpty |
private String |
falseString |
private String |
trueString |
static String |
VALUE_0 |
static String |
VALUE_1 |
static String |
VALUE_FALSE |
static String |
VALUE_NO |
static String |
VALUE_OFF |
static String |
VALUE_ON |
static String |
VALUE_TRUE |
static String |
VALUE_YES |
| 构造器和说明 |
|---|
NacosCustomBooleanEditor(boolean allowEmpty) |
NacosCustomBooleanEditor(String trueString,
String falseString,
boolean allowEmpty) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
convert(String text) |
String |
getAsText() |
void |
setValue(Object value) |
@Nullable private final String trueString
@Nullable private final String falseString
private final boolean allowEmpty
public void setValue(Object value)
setValue 在接口中 PropertyEditorsetValue 在类中 PropertyEditorSupportpublic Object convert(String text) throws IllegalArgumentException
public String getAsText()
getAsText 在接口中 PropertyEditorgetAsText 在类中 PropertyEditorSupportCopyright © 2021 Zodiac. All rights reserved.