Class ElementValueComparator<V>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.ElementValueComparator<V>
-
- All Implemented Interfaces:
Serializable
,Comparator<Element>
public final class ElementValueComparator<V> extends Object implements Comparator<Element>, Serializable
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementValueComparator(String propertyKey, Comparator<V> valueComparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Element elementA, Element elementB)
String
getPropertyKey()
Comparator<V>
getValueComparator()
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.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
ElementValueComparator
public ElementValueComparator(String propertyKey, Comparator<V> valueComparator)
-
-
Method Detail
-
getPropertyKey
public String getPropertyKey()
-
getValueComparator
public Comparator<V> getValueComparator()
-
compare
public int compare(Element elementA, Element elementB)
- Specified by:
compare
in interfaceComparator<V>
-
-