org.apache.tinkerpop.gremlin.tinkergraph.structure

## Class TinkerGraphVariables

- java.lang.Object
- - org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraphVariables

- All Implemented Interfaces:
    Graph.Variables

      public final class TinkerGraphVariables
      extends Object
      implements Graph.Variables

  Author:
    Marko A. Rodriguez (http://markorodriguez.com)

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Graph.Variables

      `Graph.Variables.Exceptions`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TinkerGraphVariables()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `<R> Optional<R>` | `get(String key)` Gets a variable.
    `Set<String>` | `keys()` Keys set for the available variables.
    `void` | `remove(String key)` Removes a variable.
    `void` | `set(String key, Object value)` Sets a variable.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Graph.Variables

      `asMap`

- - ### Constructor Detail

    - #### TinkerGraphVariables

          public TinkerGraphVariables()

  - ### Method Detail

    - #### keys

          public Set<String> keys()

      Description copied from interface: `Graph.Variables`
      Keys set for the available variables.
      Specified by:
        `keys` in interface `Graph.Variables`

    - #### get

          public <R> Optional<R> get(String key)

      Description copied from interface: `Graph.Variables`
      Gets a variable.
      Specified by:
        `get` in interface `Graph.Variables`

    - #### remove

          public void remove(String key)

      Description copied from interface: `Graph.Variables`
      Removes a variable.
      Specified by:
        `remove` in interface `Graph.Variables`

    - #### set

          public void set(String key,
                          Object value)

      Description copied from interface: `Graph.Variables`
      Sets a variable.
      Specified by:
        `set` in interface `Graph.Variables`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2013–2022 Apache Software Foundation. All rights reserved.