Class AnnotationValue.ForTypeDescription.Loaded<U extends java.lang.Class<U>>
- java.lang.Object
-
- net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase<U>
-
- net.bytebuddy.description.annotation.AnnotationValue.ForTypeDescription.Loaded<U>
-
- Type Parameters:
U- The represented type.
- All Implemented Interfaces:
AnnotationValue.Loaded<U>
- Enclosing class:
- AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>
protected static class AnnotationValue.ForTypeDescription.Loaded<U extends java.lang.Class<U>> extends AnnotationValue.Loaded.AbstractBase<U>
A loaded annotation value for a given type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase
AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<Z>
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue.Loaded
AnnotationValue.Loaded.AbstractBase<W>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)AnnotationValue.StategetState()Returns the state of the represented loaded annotation value.inthashCode()booleanrepresents(java.lang.Object value)Verifies if this loaded value represents the supplied loaded value.Uresolve()Resolves the value to the actual value of an annotation.java.lang.StringtoString()-
Methods inherited from class net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase
resolve
-
-
-
-
Constructor Detail
-
Loaded
public Loaded(U type)
Creates a new loaded annotation value for a given type.- Parameters:
type- The represented type.
-
-
Method Detail
-
getState
public AnnotationValue.State getState()
Returns the state of the represented loaded annotation value.- Returns:
- The state represented by this instance.
-
resolve
public U resolve()
Resolves the value to the actual value of an annotation. Calling this method might throw a runtime exception if this value is either not defined or not resolved.- Returns:
- The actual annotation value represented by this instance.
-
represents
public boolean represents(java.lang.Object value)
Verifies if this loaded value represents the supplied loaded value.- Parameters:
value- A loaded annotation value.- Returns:
trueif the supplied annotation value is represented by this annotation value.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@MaybeNull java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-