org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration

## Class PartitionStrategy.TypeChecker<A>

- java.lang.Object
- - org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.PartitionStrategy.TypeChecker<A>

- All Implemented Interfaces:
    Serializable, Predicate<Traverser<A>>
  Enclosing class:
    PartitionStrategy

      public final class PartitionStrategy.TypeChecker<A>
      extends Object
      implements Predicate<Traverser<A>>, Serializable

  A concrete lambda implementation that checks if the type passing through on the `Traverser` is of a specific `Element` type.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TypeChecker(Class<? extends Element> toCheck)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `test(Traverser traverser)`
    `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.Predicate

      `and, isEqual, negate, or`

- - ### Constructor Detail

    - #### TypeChecker

          public TypeChecker(Class<? extends Element> toCheck)

  - ### Method Detail

    - #### test

          public boolean test(Traverser traverser)

      Specified by:
        `test` in interface `Predicate<Traverser<A>>`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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