Class ComparatorFields


  • public class ComparatorFields
    extends Object
    The list of comparator fields.
    Author:
    Christian Bremer
    • Constructor Detail

      • ComparatorFields

        public ComparatorFields()
        Instantiates a new list of comparator fields.
      • ComparatorFields

        public ComparatorFields​(Collection<? extends ComparatorField> fields)
        Instantiates a new list of comparator fields.
        Parameters:
        fields - the comparator fields
    • Method Detail

      • getFields

        public List<ComparatorField> getFields()
        Gets the list of comparator fields.
        Returns:
        the list of comparator fields
      • toWkt

        public String toWkt()
        Creates the well known text of this list of field ordering descriptions.

        The syntax of the field ordering description is

         fieldNameOrPath0,asc,ignoreCase,nullIsFirst|fieldNameOrPath1,asc,ignoreCase,nullIsFirst
         

        For example

         room.number,asc,true,false|person.lastName,asc,true,false|person.firstName,asc,true,false
         
        Returns:
        the well known text
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object