Class NonNullHelper
- java.lang.Object
-
- io.smallrye.graphql.schema.helper.NonNullHelper
-
public class NonNullHelper extends Object
Helping to figure out of some should be marked as Non null- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
markAsNonNull
public static boolean markAsNonNull(org.jboss.jandex.Type type, Annotations annotations)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
-
-