Package graphql.schema
Class InputValueWithState
- java.lang.Object
-
- graphql.schema.InputValueWithState
-
@PublicApi public class InputValueWithState extends java.lang.Object
Used by @GraphQLArgument
andGraphQLInputObjectField
to represent different value states.
-
-
Field Summary
Fields Modifier and Type Field Description static InputValueWithState
NOT_SET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.Object
getValue()
boolean
isExternal()
boolean
isInternal()
boolean
isLiteral()
boolean
isNotSet()
boolean
isSet()
static InputValueWithState
newExternalValue(@Nullable java.lang.Object value)
static InputValueWithState
newInternalValue(@Nullable java.lang.Object value)
static InputValueWithState
newLiteralValue(@NonNull Value value)
java.lang.String
toString()
-
-
-
Field Detail
-
NOT_SET
public static final InputValueWithState NOT_SET
-
-
Method Detail
-
newLiteralValue
public static InputValueWithState newLiteralValue(@NonNull Value value)
-
newExternalValue
public static InputValueWithState newExternalValue(@Nullable java.lang.Object value)
-
newInternalValue
public static InputValueWithState newInternalValue(@Nullable java.lang.Object value)
-
getValue
public @Nullable java.lang.Object getValue()
-
isNotSet
public boolean isNotSet()
-
isSet
public boolean isSet()
-
isLiteral
public boolean isLiteral()
-
isExternal
public boolean isExternal()
-
isInternal
public boolean isInternal()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-