Class GraphQLVariable<T>


  • public class GraphQLVariable<T>
    extends java.lang.Object
    This class represents a variable of a GraphQL query.
    • Constructor Summary

      Constructors 
      Constructor Description
      GraphQLVariable​(java.lang.String name, T value)
      Constructs a new GraphQLVariable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String encode()
      Returns a string representation of the variable.
      java.lang.String getName()
      Returns the name of the variable.
      T getValue()
      Returns the value of the variable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphQLVariable

        public GraphQLVariable​(java.lang.String name,
                               T value)
        Constructs a new GraphQLVariable.
        Parameters:
        name - The name of the variable.
        value - The value of the variable.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the variable.
        Returns:
        The name of the variable.
      • getValue

        public T getValue()
        Returns the value of the variable.
        Returns:
        The value of the variable.
      • encode

        public java.lang.String encode()
        Returns a string representation of the variable.
        Returns:
        A string representation of the variable.