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 Summary
Constructors Constructor Description DefaultValueHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<String>getDefaultValue(Annotations... annotations)Find a default object in the annotation, or empty if nothing
-
-
-
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
-
-