public enum BeanInfoCache extends Enum<BeanInfoCache>
枚举常量和说明 |
---|
INSTANCE |
限定符和类型 | 方法和说明 |
---|---|
Map<String,PropertyDescriptor> |
getPropertyDescriptorMap(Class<?> beanClass,
boolean ignoreCase)
获得属性名和
PropertyDescriptor Map映射 |
void |
putPropertyDescriptorMap(Class<?> beanClass,
Map<String,PropertyDescriptor> fieldNamePropertyDescriptorMap,
boolean ignoreCase)
加入缓存
|
static BeanInfoCache |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static BeanInfoCache[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final BeanInfoCache INSTANCE
public static BeanInfoCache[] values()
for (BeanInfoCache c : BeanInfoCache.values()) System.out.println(c);
public static BeanInfoCache valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public Map<String,PropertyDescriptor> getPropertyDescriptorMap(Class<?> beanClass, boolean ignoreCase)
PropertyDescriptor
Map映射beanClass
- Bean的类ignoreCase
- 是否忽略大小写PropertyDescriptor
Map映射public void putPropertyDescriptorMap(Class<?> beanClass, Map<String,PropertyDescriptor> fieldNamePropertyDescriptorMap, boolean ignoreCase)
beanClass
- Bean的类fieldNamePropertyDescriptorMap
- 属性名和PropertyDescriptor
Map映射ignoreCase
- 是否忽略大小写Copyright © 2021. All rights reserved.