public enum BeanInfoCache extends Enum<BeanInfoCache>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
clear()
清空缓存
|
Map<String,PropertyDescriptor> |
getPropertyDescriptorMap(Class<?> beanClass,
boolean ignoreCase)
获得属性名和
PropertyDescriptor Map映射 |
Map<String,PropertyDescriptor> |
getPropertyDescriptorMap(Class<?> beanClass,
boolean ignoreCase,
Func0<Map<String,PropertyDescriptor>> supplier)
获得属性名和
PropertyDescriptor Map映射 |
void |
putPropertyDescriptorMap(Class<?> beanClass,
Map<String,PropertyDescriptor> fieldNamePropertyDescriptorMap,
boolean ignoreCase)
加入缓存
|
static BeanInfoCache |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BeanInfoCache[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Map<String,PropertyDescriptor> getPropertyDescriptorMap(Class<?> beanClass, boolean ignoreCase)
PropertyDescriptor
Map映射beanClass
- Bean的类ignoreCase
- 是否忽略大小写PropertyDescriptor
Map映射public Map<String,PropertyDescriptor> getPropertyDescriptorMap(Class<?> beanClass, boolean ignoreCase, Func0<Map<String,PropertyDescriptor>> supplier)
PropertyDescriptor
Map映射beanClass
- Bean的类ignoreCase
- 是否忽略大小写supplier
- 缓存对象产生函数PropertyDescriptor
Map映射public void putPropertyDescriptorMap(Class<?> beanClass, Map<String,PropertyDescriptor> fieldNamePropertyDescriptorMap, boolean ignoreCase)
beanClass
- Bean的类fieldNamePropertyDescriptorMap
- 属性名和PropertyDescriptor
Map映射ignoreCase
- 是否忽略大小写public void clear()
Copyright © 2024. All rights reserved.