org.apache.tinkerpop.gremlin.process.traversal.util

## Class TraversalRing<A,B>

- java.lang.Object
- - org.apache.tinkerpop.gremlin.process.traversal.util.TraversalRing<A,B>

- All Implemented Interfaces:
    Serializable, Cloneable

      public final class TraversalRing<A,B>
      extends Object
      implements Serializable, Cloneable

  Author:
    Marko A. Rodriguez (http://markorodriguez.com)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TraversalRing(Traversal.Admin<A,B>... traversals)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addTraversal(Traversal.Admin<A,B> traversal)`
    `TraversalRing<A,B>` | `clone()`
    `List<Traversal.Admin<A,B>>` | `getTraversals()`
    `int` | `hashCode()`
    `boolean` | `isEmpty()`
    `Traversal.Admin<A,B>` | `next()`
    `void` | `reset()`
    `int` | `size()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### TraversalRing

          public TraversalRing(Traversal.Admin<A,B>... traversals)

  - ### Method Detail

    - #### next

          public Traversal.Admin<A,B> next()

    - #### isEmpty

          public boolean isEmpty()

    - #### reset

          public void reset()

    - #### size

          public int size()

    - #### addTraversal

          public void addTraversal(Traversal.Admin<A,B> traversal)

    - #### getTraversals

          public List<Traversal.Admin<A,B>> getTraversals()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### clone

          public TraversalRing<A,B> clone()

      Overrides:
        `clone` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

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