Package com.syncleus.ferma
Class Comparators
java.lang.Object
com.syncleus.ferma.Comparators
public abstract class Comparators extends Object
Useful comparators when dealing with framed elements
-
Method Summary
Modifier and Type Method Description static Comparator<ElementFrame>
id()
Creates a comparator that compares by ID.static Comparator<ElementFrame>
idAsLong()
Compare by id parsed as a long (Useful for tinkergraph)static Comparator<ElementFrame>
property(String property)
Compare by property.
-
Method Details
-
id
Creates a comparator that compares by ID.- Returns:
- The comparator.
-
idAsLong
Compare by id parsed as a long (Useful for tinkergraph)- Returns:
- The comparator.
-
property
Compare by property. Note that no value may be null.- Parameters:
property
- The property to compare by.- Returns:
- The result of comparing the property.
-