Interface LongFieldComparator<ENTITY>

Type Parameters:
ENTITY - entity type
All Superinterfaces:
Comparator<ENTITY>, FieldComparator<ENTITY>
All Known Subinterfaces:
LongField<ENTITY>

public interface LongFieldComparator<ENTITY> extends FieldComparator<ENTITY>
A FieldComparator that compares values of a LongField.
Since:
3.0.0
Author:
Emil Forslund
  • Method Details

    • getField

      HasLongValue<ENTITY> getField()
      Gets the field that is being compared.
      Specified by:
      getField in interface FieldComparator<ENTITY>
      Returns:
      the compared field
    • reversed

      Description copied from interface: FieldComparator
      Returns a new FieldComparator that order entities in the opposite orders compared to this comparator. For an example, if this comparator orders entities based on a column 'firstname' in descending order, then the returned FieldComparator will be ordering entities based on 'firstname' in ascending order.
      Specified by:
      reversed in interface Comparator<ENTITY>
      Specified by:
      reversed in interface FieldComparator<ENTITY>
      Returns:
      a new reverse comparator