Uses of Interface
org.aoju.bus.core.lang.function.Func0
Packages that use Func0
Package
Description
Bean相关操作,包括Bean信息描述,Bean路径表达式、动态Bean等
提供单例对象的统一管理
语言特性包,包括大量便捷的数据结构,例如验证器Validator,分布式ID生成器Snowflake等
Map相关封装,提供特殊Map实现以及列表类型值的Map实现
工具包,提供各种工具方法,按照归类入口为XXXKit,如数组工具ArrayKit等
-
Uses of Func0 in org.aoju.bus.core.beans
Methods in org.aoju.bus.core.beans with parameters of type Func0Modifier and TypeMethodDescriptionBeanCache.getBeanDesc(Class<?> beanClass, Func0<BeanDesc> supplier) 获得属性名和BeanDescMap映射PropertyCache.getPropertyDescriptorMap(Class<?> beanClass, boolean ignoreCase, Func0<Map<String, PropertyDescriptor>> supplier) 获得属性名和PropertyDescriptorMap映射 -
Uses of Func0 in org.aoju.bus.core.instance
Methods in org.aoju.bus.core.instance with parameters of type Func0Modifier and TypeMethodDescriptionstatic <T> TInstances.singletion(String key, Func0<T> supplier) 获得指定类的单例对象 对象存在于池中返回,否则创建,每次调用此方法获得的对象为同一个对象 注意:单例针对的是类和参数,也就是说只有类、参数一致才会返回同一个对象 -
Uses of Func0 in org.aoju.bus.core.lang
Methods in org.aoju.bus.core.lang with parameters of type Func0 -
Uses of Func0 in org.aoju.bus.core.map
Methods in org.aoju.bus.core.map with parameters of type Func0Modifier and TypeMethodDescriptionReferenceMap.computeIfAbsent(K key, Func0<? extends V> supplier) 从缓存中获得对象,当对象不在缓存中或已经过期返回Func0回调产生的对象Constructors in org.aoju.bus.core.map with parameters of type Func0ModifierConstructorDescriptionCollectionValueMap(float loadFactor, Map<? extends K, ? extends Collection<V>> m, Func0<Collection<V>> collectionCreateFunc) 构造CollectionValueMap(int initialCapacity, float loadFactor, Func0<Collection<V>> collectionCreateFunc) 构造 -
Uses of Func0 in org.aoju.bus.core.toolkit
Methods in org.aoju.bus.core.toolkit with parameters of type Func0Modifier and TypeMethodDescriptionstatic <T> StringLambdaKit.getFieldName(Func0<T> func) 获取lambda表达式Getter或Setter函数(方法)对应的字段名称,规则如下: getXxxx获取为xxxx,如getName得到name setXxxx获取为xxxx,如setName得到name isXxxx获取为xxxx,如isName得到name 其它不满足规则的方法名抛出IllegalArgumentExceptionstatic <R> StringLambdaKit.getMethodName(Func0<R> func) 获取lambda表达式函数(方法)名称static <R> Class<R>LambdaKit.getRealClass(Func0<?> func) 通过对象的方法或类的静态方法引用,获取lambda实现类static <R> SerializedLambda解析lambda表达式,加了缓存 该缓存可能会在任意不定的时间被清除