Class NormalizedInputValue

java.lang.Object
graphql.normalized.NormalizedInputValue

@PublicApi public class NormalizedInputValue extends Object
An argument value with type information.
  • Constructor Details

    • NormalizedInputValue

      public NormalizedInputValue(String typeName, Object value)
  • Method Details

    • getTypeName

      public String getTypeName()
      This can be a wrapped type: e.g. [String!]!
      Returns:
      the type name
    • getUnwrappedTypeName

      public String getUnwrappedTypeName()
      Returns:
      the type name unwrapped of all list and non-null type wrapping
    • getValue

      public Object getValue()
      Depending on the type it returns: Scalar or Enum: the ast literal of the Scalar. InputObject: the value is a map of field-name to NormalizedInputValue List of Scalar literal or Enum literal or NormalizedInput (or even List of List ..)
      Returns:
      the value
    • isListLike

      public boolean isListLike()
      Returns:
      true if the input value type is a list or a non-nullable list
    • isNonNullable

      public boolean isNonNullable()
      Returns:
      true if the input value type is non-nullable
    • isNullable

      public boolean isNullable()
      Returns:
      true if the input value type is nullable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object