org.apache.tinkerpop.gremlin.tinkergraph.structure

## Interface TinkerGraph.IdManager<T>

- Type Parameters:
    `T` - the id type
  All Known Implementing Classes:
    TinkerGraph.DefaultIdManager
  Enclosing class:
    TinkerGraph

      public static interface TinkerGraph.IdManager<T>

  TinkerGraph will use an implementation of this interface to generate identifiers when a user does not supply them and to handle identifier conversions when querying to provide better flexibility with respect to handling different data types that mean the same thing. For example, the `TinkerGraph.DefaultIdManager.LONG` implementation will allow `g.vertices(1l, 2l)` and `g.vertices(1, 2)` to both return values.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `allow(Object id)` Determine if an identifier is allowed by this manager given its type.
    `T` | `convert(Object id)` Convert an identifier to the type required by the manager.
    `T` | `getNextId(TinkerGraph graph)` Generate an identifier which should be unique to the `TinkerGraph` instance.

- - ### Method Detail

    - #### getNextId

          T getNextId(TinkerGraph graph)

      Generate an identifier which should be unique to the `TinkerGraph` instance.

    - #### convert

          T convert(Object id)

      Convert an identifier to the type required by the manager.

    - #### allow

          boolean allow(Object id)

      Determine if an identifier is allowed by this manager given its type.

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