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, wait
chars, codePoints
public AnnotationClassValue(String name)
name
- The name of the type.public String getName()
public int length()
length
in interface CharSequence
public char charAt(int index)
charAt
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public String toString()
toString
in interface CharSequence
toString
in class Object