Class Comparators

java.lang.Object
com.syncleus.ferma.Comparators

public abstract class Comparators
extends Object
Useful comparators when dealing with framed elements
  • Method Details

    • id

      public static Comparator<ElementFrame> id()
      Creates a comparator that compares by ID.
      Returns:
      The comparator.
    • idAsLong

      public static Comparator<ElementFrame> idAsLong()
      Compare by id parsed as a long (Useful for tinkergraph)
      Returns:
      The comparator.
    • property

      public static Comparator<ElementFrame> property​(String 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.