Class DefaultValueHelper


  • public class DefaultValueHelper
    extends Object
    Helping to figure out if there is a default value. Looking for the @DefaultValue annotation.
    Author:
    Phillip Kruger (phillip.kruger@redhat.com)
    • Constructor Detail

      • DefaultValueHelper

        public DefaultValueHelper()
    • Method Detail

      • getDefaultValue

        public static Optional<String> getDefaultValue​(Annotations... annotations)
        Find a default object in the annotation, or empty if nothing
        Parameters:
        annotations - the annotations to search in
        Returns:
        a optional default object