org.apache.tinkerpop.gremlin.process.traversal

## Class P<V>

- java.lang.Object
- - org.apache.tinkerpop.gremlin.process.traversal.P<V>

- All Implemented Interfaces:
    Serializable, Cloneable, Predicate<V>

      public class P<V>
      extends Object
      implements Predicate<V>, Serializable, Cloneable

  Author:
    Marko A. Rodriguez (http://markorodriguez.com), Stephen Mallette (http://stephen.genoprime.com)
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected BiPredicate<V,V>` | `biPredicate`
    `protected V` | `originalValue`
    `protected V` | `value`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `P(BiPredicate<V,V> biPredicate, V value)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `P<V>` | `and(Predicate<? super V> predicate)`
    `static <V> P<V>` | `between(V first, V second)`
    `P<V>` | `clone()`
    `static <V> P<V>` | `eq(V value)`
    `boolean` | `equals(Object other)`
    `BiPredicate<V,V>` | `getBiPredicate()`
    `V` | `getOriginalValue()` Gets the original value used at time of construction of the `P`.
    `V` | `getValue()` Gets the current value to be passed to the predicate for testing.
    `static <V> P<V>` | `gt(V value)`
    `static <V> P<V>` | `gte(V value)`
    `int` | `hashCode()`
    `static <V> P<V>` | `inside(V first, V second)`
    `static <V> P<V>` | `lt(V value)`
    `static <V> P<V>` | `lte(V value)`
    `P<V>` | `negate()`
    `static <V> P<V>` | `neq(V value)`
    `static <V> P<V>` | `not(P<V> predicate)`
    `P<V>` | `or(Predicate<? super V> predicate)`
    `static <V> P<V>` | `outside(V first, V second)`
    `void` | `setValue(V value)`
    `static P` | `test(BiPredicate biPredicate, Object value)`
    `boolean` | `test(V testValue)`
    `String` | `toString()`
    `static <V> P<V>` | `within(Collection<V> value)`
    `static <V> P<V>` | `within(V... values)`
    `static <V> P<V>` | `without(Collection<V> value)`
    `static <V> P<V>` | `without(V... values)`

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

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

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

      `isEqual`

- - ### Field Detail

    - #### biPredicate

          protected BiPredicate<V,V> biPredicate

    - #### value

          protected V value

    - #### originalValue

          protected V originalValue

  - ### Constructor Detail

    - #### P

          public P(BiPredicate<V,V> biPredicate,
                   V value)

  - ### Method Detail

    - #### getBiPredicate

          public BiPredicate<V,V> getBiPredicate()

    - #### getOriginalValue

          public V getOriginalValue()

      Gets the original value used at time of construction of the `P`. This value can change its type in some cases.

    - #### getValue

          public V getValue()

      Gets the current value to be passed to the predicate for testing.

    - #### setValue

          public void setValue(V value)

    - #### test

          public boolean test(V testValue)

      Specified by:
        `test` in interface `Predicate<V>`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object other)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### negate

          public P<V> negate()

      Specified by:
        `negate` in interface `Predicate<V>`

    - #### and

          public P<V> and(Predicate<? super V> predicate)

      Specified by:
        `and` in interface `Predicate<V>`

    - #### or

          public P<V> or(Predicate<? super V> predicate)

      Specified by:
        `or` in interface `Predicate<V>`

    - #### clone

          public P<V> clone()

      Overrides:
        `clone` in class `Object`

    - #### eq

          public static <V> P<V> eq(V value)

    - #### neq

          public static <V> P<V> neq(V value)

    - #### lt

          public static <V> P<V> lt(V value)

    - #### lte

          public static <V> P<V> lte(V value)

    - #### gt

          public static <V> P<V> gt(V value)

    - #### gte

          public static <V> P<V> gte(V value)

    - #### inside

          public static <V> P<V> inside(V first,
                                        V second)

    - #### outside

          public static <V> P<V> outside(V first,
                                         V second)

    - #### between

          public static <V> P<V> between(V first,
                                         V second)

    - #### within

          public static <V> P<V> within(V... values)

    - #### within

          public static <V> P<V> within(Collection<V> value)

    - #### without

          public static <V> P<V> without(V... values)

    - #### without

          public static <V> P<V> without(Collection<V> value)

    - #### test

          public static P test(BiPredicate biPredicate,
                               Object value)

    - #### not

          public static <V> P<V> not(P<V> predicate)

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