Enum Compare
- java.lang.Object
- 
- java.lang.Enum<Compare>
- 
- org.apache.tinkerpop.gremlin.process.traversal.Compare
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Compare>,- BiPredicate<Object,Object>,- PBiPredicate<Object,Object>
 
 public enum Compare extends Enum<Compare> implements PBiPredicate<Object,Object> Compareis aBiPredicatethat determines whether the first argument is==,!=,>,>=,<,<=to the second argument.- Author:
- Marko A. Rodriguez (http://markorodriguez.com), Stephen Mallette (http://stephen.genoprime.com), Matt Frantz (http://github.com/mhfrantz), Daniel Kuppitz (http://gemlin.guru)
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description eqEvaluates if the first object is equal to the second per Gremlin Comparison semantics.gtEvaluates if the first object is greater than the second per Gremlin Comparison semantics.gteEvaluates if the first object is greater-equal to the second per Gremlin Comparison semantics.ltEvaluates if the first object is less than the second per Gremlin Comparison semantics.lteEvaluates if the first object is less-equal to the second per Gremlin Comparison semantics.neqEvaluates if the first object is not equal to the second per Gremlin Comparison semantics.
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Comparenegate()Produce the opposite representation of the currentCompareenum.static ComparevalueOf(String name)Returns the enum constant of this type with the specified name.static Compare[]values()Returns an array containing the constants of this enum type, in the order they are declared.- 
Methods inherited from class java.lang.Enumclone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 - 
Methods inherited from interface java.util.function.BiPredicateand, or, test
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.PBiPredicategetPredicateName
 
- 
 
- 
- 
- 
Enum Constant Detail- 
eqpublic static final Compare eq Evaluates if the first object is equal to the second per Gremlin Comparison semantics.- Since:
- 3.0.0-incubating
 
 - 
neqpublic static final Compare neq Evaluates if the first object is not equal to the second per Gremlin Comparison semantics.- Since:
- 3.0.0-incubating
 
 - 
gtpublic static final Compare gt Evaluates if the first object is greater than the second per Gremlin Comparison semantics.- Since:
- 3.0.0-incubating
 
 - 
gtepublic static final Compare gte Evaluates if the first object is greater-equal to the second per Gremlin Comparison semantics.- Since:
- 3.0.0-incubating
 
 - 
ltpublic static final Compare lt Evaluates if the first object is less than the second per Gremlin Comparison semantics.- Since:
- 3.0.0-incubating
 
 - 
ltepublic static final Compare lte Evaluates if the first object is less-equal to the second per Gremlin Comparison semantics.- Since:
- 3.0.0-incubating
 
 
- 
 - 
Method Detail- 
valuespublic static Compare[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Compare c : Compare.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Compare valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
negatepublic abstract Compare negate() Produce the opposite representation of the currentCompareenum.- Specified by:
- negatein interface- BiPredicate<Object,Object>
- Specified by:
- negatein interface- PBiPredicate<Object,Object>
 
 
- 
 
-