Package org.bremersee.comparator.model
Class ComparatorFields
- java.lang.Object
-
- org.bremersee.comparator.model.ComparatorFields
-
public class ComparatorFields extends Object
The list of comparator fields.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description ComparatorFields()Instantiates a new list of comparator fields.ComparatorFields(Collection<? extends ComparatorField> fields)Instantiates a new list of comparator fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<ComparatorField>getFields()Gets the list of comparator fields.inthashCode()StringtoString()StringtoWkt()Creates the well known text of this list of field ordering descriptions.
-
-
-
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
-
-