Class AnnotationValue.ForIncompatibleType.Loaded<W>

Type Parameters:
W - The type of the annotation's expected value.
All Implemented Interfaces:
AnnotationValue.Loaded<W>
Enclosing class:
AnnotationValue.ForIncompatibleType<U,V>

public static class AnnotationValue.ForIncompatibleType.Loaded<W> extends AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty<W>
A description of annotation value for a type that does not fulfil an expectation.
  • Field Details

    • type

      private final Class<?> type
      The type that does not fulfil an expectation.
  • Constructor Details

    • Loaded

      public Loaded(Class<?> type)
      Creates a new description of an annotation.
      Parameters:
      type - The type that does not fulfil an expectation.
  • Method Details

    • resolve

      public W 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object