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)
获得属性名和
PropertyDescriptorMap映射 |
Map<String,PropertyDescriptor> |
getPropertyDescriptorMap(Class<?> beanClass,
boolean ignoreCase,
SerSupplier<Map<String,PropertyDescriptor>> supplier)
获得属性名和
PropertyDescriptorMap映射 |
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)
PropertyDescriptorMap映射beanClass - Bean的类ignoreCase - 是否忽略大小写PropertyDescriptorMap映射public Map<String,PropertyDescriptor> getPropertyDescriptorMap(Class<?> beanClass, boolean ignoreCase, SerSupplier<Map<String,PropertyDescriptor>> supplier)
PropertyDescriptorMap映射beanClass - Bean的类ignoreCase - 是否忽略大小写supplier - 缓存对象产生函数PropertyDescriptorMap映射public void putPropertyDescriptorMap(Class<?> beanClass, Map<String,PropertyDescriptor> fieldNamePropertyDescriptorMap, boolean ignoreCase)
beanClass - Bean的类fieldNamePropertyDescriptorMap - 属性名和PropertyDescriptorMap映射ignoreCase - 是否忽略大小写public void clear()
Copyright © 2025. All rights reserved.