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

## Class TraversalClassFunction<S,E>

- java.lang.Object
- - org.apache.tinkerpop.gremlin.process.traversal.util.TraversalClassFunction<S,E>

- All Implemented Interfaces:
    Serializable, Function<Graph,Traversal.Admin<S,E>>

      public final class TraversalClassFunction<S,E>
      extends Object
      implements Function<Graph,Traversal.Admin<S,E>>, Serializable

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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TraversalClassFunction(Class<? extends Supplier<Traversal.Admin<S,E>>> traversalSupplierClass)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Traversal.Admin<S,E>` | `apply(Graph graph)`
    `String` | `toString()`

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

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

    - ### Methods inherited from interface java.util.function.Function

      `andThen, compose, identity`

- - ### Constructor Detail

    - #### TraversalClassFunction

          public TraversalClassFunction(Class<? extends Supplier<Traversal.Admin<S,E>>> traversalSupplierClass)

  - ### Method Detail

    - #### apply

          public Traversal.Admin<S,E> apply(Graph graph)

      Specified by:
        `apply` in interface `Function<Graph,Traversal.Admin<S,E>>`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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