java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.HasContainer
All Implemented Interfaces:
Serializable, Cloneable, Predicate<Element>

public class HasContainer extends Object implements Serializable, Cloneable, Predicate<Element>
Author:
Marko A. Rodriguez (http://markorodriguez.com)
See Also:
  • Constructor Details

    • HasContainer

      public HasContainer(String key, P<?> predicate)
  • Method Details

    • test

      public final boolean test(Element element)
      Specified by:
      test in interface Predicate<Element>
    • test

      public final boolean test(Property property)
    • testId

      protected boolean testId(Element element)
    • testIdAsString

      protected boolean testIdAsString(Element element)
    • testLabel

      protected boolean testLabel(Element element)
    • testValue

      protected boolean testValue(Property property)
    • testKey

      protected boolean testKey(Property property)
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • clone

      public HasContainer clone()
      Overrides:
      clone in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getKey

      public final String getKey()
    • setKey

      public final void setKey(String key)
    • getPredicate

      public final P<?> getPredicate()
    • getBiPredicate

      public final BiPredicate<?,?> getBiPredicate()
    • getValue

      public final Object getValue()
    • hasTraversal

      public boolean hasTraversal()
      Determines if this HasContainer's predicate holds a child traversal whose result is resolved at runtime (e.g. P.eq(traversal) or P.within(traversal)).
    • testAll

      public static <V> boolean testAll(Property<V> property, List<HasContainer> hasContainers)
    • testAll

      public static boolean testAll(Element element, List<HasContainer> hasContainers)