org.apache.tinkerpop.gremlin.structure

## Interface Graph.Variables

- All Known Implementing Classes:
    Neo4jGraphVariables, TinkerGraphVariables
  Enclosing interface:
    Graph

      public static interface Graph.Variables

  Graph variables are a set of key/value pairs associated with the graph. The keys are String and the values are Objects.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `Graph.Variables.Exceptions`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default Map<String,Object>` | `asMap()` Gets the variables of the `Graph` as a `Map`.
    `<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.

- - ### Method Detail

    - #### keys

          Set<String> keys()

      Keys set for the available variables.

    - #### get

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

      Gets a variable.

    - #### set

          void set(String key,
                   Object value)

      Sets a variable.

    - #### remove

          void remove(String key)

      Removes a variable.

    - #### asMap

          default Map<String,Object> asMap()

      Gets the variables of the `Graph` as a `Map`.

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