| 程序包 | 说明 |
|---|---|
| com.github.houbb.heaven.reflect.api |
反射接口模块
|
| com.github.houbb.heaven.reflect.model |
常见的对象
|
| com.github.houbb.heaven.reflect.simple |
反射模块简单默认实现
|
| com.github.houbb.heaven.support.attr | |
| com.github.houbb.heaven.support.attr.impl | |
| com.github.houbb.heaven.util.lang |
java.lang 相关工具包
Created: 2019-02-20 21:18
Project: heaven
|
| com.github.houbb.heaven.util.lang.reflect |
反射相关工具包
Created: 2019-02-20 21:19
Project: heaven
|
| com.github.houbb.heaven.util.util |
java.util 相关工具包
Created: 2019-02-20 21:19
Project: heaven
|
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<Annotation> |
IField.annotationOpt(Class type)
根据注解类型获取对应的 Optional
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Annotation> |
FieldBean.annotationOptByType(Class<T> tClass)
获取指定类型的注解信息 Optional
|
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<Annotation> |
SimpleField.annotationOpt(Class type) |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<Object> |
IAttributeContext.getAttrOptional(String key)
获取配置属性-Optional
|
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<Object> |
AttributeContext.getAttrOptional(String key) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Optional<Double> |
NumUtil.toDouble(String string)
转为 Double
|
static Optional<Integer> |
NumUtil.toInteger(String string)
转为 int
|
static Optional<Long> |
NumUtil.toLong(String string)
转为 Long
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Optional<Annotation> |
ReflectAnnotationUtil.getAnnotation(Annotation annotation,
Class<? extends Annotation> annotationClass)
获取当前字段被指定注解标注的注解
|
static Optional<Annotation> |
ReflectAnnotationUtil.getAnnotation(Class clazz,
Class<? extends Annotation> annotationClass)
获取类指定的注解
|
static Optional<Method> |
ReflectMethodUtil.getMethodOptional(Class tClass,
Class<? extends Annotation> annotationClass)
获取指定注解的方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Optional<T> |
Optional.empty()
Returns an empty
Optional instance. |
static <T> Optional<T> |
CollectionUtil.firstNotNullElem(Collection<T> list)
找到第一个不为 null 的元素
|
static Optional<Object> |
ArrayUtil.firstNotNullElem(Object[] objects)
找到第一个不为 null 的元素
|
static <T> Optional<T> |
Optional.of(T value)
Returns an
Optional with the specified present non-null value. |
static <T> Optional<T> |
Optional.ofNullable(T value)
Returns an
Optional describing the specified value, if non-null,
otherwise returns an empty Optional. |
Copyright © 2024. All rights reserved.