public enum Feature extends Enum<Feature>
限定符和类型 | 字段和说明 |
---|---|
int |
mask |
限定符和类型 | 方法和说明 |
---|---|
static int |
config(int features,
Feature feature,
boolean state) |
int |
getMask() |
static boolean |
isEnabled(int features,
Feature feature) |
static int |
of(Feature[] features) |
static Feature |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Feature[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Feature AutoCloseSource
public static final Feature AllowComment
public static final Feature AllowUnQuotedFieldNames
public static final Feature AllowSingleQuotes
public static final Feature InternFieldNames
public static final Feature AllowISO8601DateFormat
public static final Feature AllowArbitraryCommas
public static final Feature UseBigDecimal
public static final Feature IgnoreNotMatch
public static final Feature SortFeidFastMatch
public static final Feature DisableASM
public static final Feature DisableCircularReferenceDetect
public static final Feature InitStringFieldAsEmpty
public static final Feature SupportArrayToBean
public static final Feature OrderedField
public static final Feature DisableSpecialKeyDetect
public static final Feature UseObjectArray
public static Feature[] values()
for (Feature c : Feature.values()) System.out.println(c);
public static Feature valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public final int getMask()
public static boolean isEnabled(int features, Feature feature)
public static int config(int features, Feature feature, boolean state)
public static int of(Feature[] features)
Copyright © 2012–2016 Alibaba Group. All rights reserved.