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 Details

    • 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 type
      annotations - 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 type
      annotations - the applicable annotations
      ignorePrimitiveCheck - ignore the primitive rule
      Returns:
      true if we should