public final class DeprecationUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isDeprecated(AnnotatedElement annotationSupplier)
检查
AnnotatedElement实例是否已经过期 |
boolean |
isDeprecated(Class<?> annotationSupplier)
检查类型是否已经过期
|
boolean |
isDeprecated(Method annotationSupplier)
检查方法是否已经过期
|
public boolean isDeprecated(AnnotatedElement annotationSupplier)
AnnotatedElement实例是否已经过期annotationSupplier - {code AnnotatedElement}实例true 否则返回 falseConstructor,
Field,
Parameterpublic boolean isDeprecated(Method annotationSupplier)
annotationSupplier - 方法true 否则返回 falsepublic boolean isDeprecated(Class<?> annotationSupplier)
annotationSupplier - 类型true 否则返回 falseCopyright © 2022. All rights reserved.