T - The generic type of the underlying classpublic final class AnnotationClassValue<T> extends Object implements CharSequence, Named
getType() method will return a non-empty optional.| Constructor and Description |
|---|
AnnotationClassValue(Class<T> theClass)
Constructs a class value for a type that is present.
|
AnnotationClassValue(String name)
Constructs a class value for the type that is not present.
|
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
boolean |
equals(Object o) |
String |
getName() |
Optional<Class<T>> |
getType()
The type if present on the classpath.
|
int |
hashCode() |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic AnnotationClassValue(String name)
name - The name of the type.public String getName()
public int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic String toString()
toString in interface CharSequencetoString in class Object