All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vertexium.sorting.SortingStrategy Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.sorting;

import org.vertexium.VertexiumObject;
import org.vertexium.query.SortDirection;

public interface SortingStrategy {
    /**
     * Compares two {@link VertexiumObject}.
     *
     * @return 0 if both objects are equal. If direction is {@link SortDirection#ASCENDING}: >0 if o1 > o2 or <0 if
     * o1 < o2. If direction is {@link SortDirection#DESCENDING}: <0 if o1 > o2 or >0 if o1 < o2.
     */
    int compare(VertexiumObject o1, VertexiumObject o2, SortDirection direction);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy