Class NonNullHelper
java.lang.Object
io.smallrye.graphql.schema.helper.NonNullHelper
Helping to figure out of some should be marked as Non null
- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanmarkAsNonNull(org.jboss.jandex.Type type, Annotations annotations) Check if we should mark a certain type as non null.static booleanmarkAsNonNull(org.jboss.jandex.Type type, Annotations annotations, boolean ignorePrimitiveCheck) Check if we should mark a certain type as non null.
-
Method Details
-
markAsNonNull
Check if we should mark a certain type as non null.- Parameters:
type- the typeannotations- the applicable annotations- Returns:
- true if we should
-
markAsNonNull
public static boolean markAsNonNull(org.jboss.jandex.Type type, Annotations annotations, boolean ignorePrimitiveCheck) Check if we should mark a certain type as non null. By default primitives is non null.- Parameters:
type- the typeannotations- the applicable annotationsignorePrimitiveCheck- ignore the primitive rule- Returns:
- true if we should
-