Interface AbstractTinkerGraph.IdManager<T>
-
- Type Parameters:
T- the id type
- All Known Implementing Classes:
AbstractTinkerGraph.DefaultIdManager
- Enclosing class:
- AbstractTinkerGraph
public static interface AbstractTinkerGraph.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, theAbstractTinkerGraph.DefaultIdManager.LONGimplementation will allowg.vertices(1l, 2l)andg.vertices(1, 2)to both return values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallow(Object id)Determine if an identifier is allowed by this manager given its type.Tconvert(Object id)Convert an identifier to the type required by the manager.TgetNextId(AbstractTinkerGraph graph)Generate an identifier which should be unique to theTinkerGraphinstance.
-
-
-
Method Detail
-
getNextId
T getNextId(AbstractTinkerGraph graph)
Generate an identifier which should be unique to theTinkerGraphinstance.
-
allow
boolean allow(Object id)
Determine if an identifier is allowed by this manager given its type.
-
-