T - the result instance's type.public final class ConstructorOf<T> extends Object implements RefConstructed<T>
RefConstructed.| Constructor and Description |
|---|
ConstructorOf(@NotNull Constructor<T> constructor)
ctor.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull Optional<T> |
create(Object... parameters)
creates a new instance from the given parameters.
|
<A extends Annotation> |
getAnnotation(@NotNull Class<A> annotationClass)
gets the annotation from the given annotation class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotation, hasAnnotationpublic ConstructorOf(@NotNull
@NotNull Constructor<T> constructor)
constructor - the constructor.public <A extends Annotation> Optional<A> getAnnotation(@NotNull @NotNull Class<A> annotationClass)
RefAnnotatedgetAnnotation in interface RefAnnotatedA - the annotation type.annotationClass - the annotation class to get.this have the given
annotation class.@NotNull public @NotNull Optional<T> create(@NotNull Object... parameters)
RefConstructedcreate in interface RefConstructed<T>parameters - the parameters to create.Copyright © 2021. All rights reserved.