Class AnnotationValue.ForEnumerationDescription.WithUnknownConstant.Loaded

    • Constructor Detail

      • Loaded

        public Loaded​(Class<? extends Enum<?>> enumType,
                      String value)
        Creates a new representation for an unknown enumeration constant of an annotation.
        Parameters:
        enumType - The loaded enumeration type.
        value - The value for which no enumeration constant exists at runtime.
    • Method Detail

      • resolve

        public Enum<?> 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.