Class DefaultValueHelper

java.lang.Object
io.smallrye.graphql.schema.helper.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 Details

    • DefaultValueHelper

      public DefaultValueHelper()
  • Method Details

    • 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