public class FieldComparator extends Object implements Comparator<Field>, Cloneable
FieldPath
for supported field name expressions.Constructor and Description |
---|
FieldComparator() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
compare(Field o1,
Field o2) |
int |
compareRecord(Record record1,
Record record2,
boolean cacheFieldIndexes) |
FieldComparator |
copyFrom(FieldComparator o) |
Collator |
getCollator() |
String |
getFieldName() |
boolean |
isAscending() |
FieldComparator |
setAscending(boolean ascending) |
FieldComparator |
setCollator(Collator collator) |
FieldComparator |
setFieldName(String fieldName)
Sets the field path of the field to be used for comparisons.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public FieldComparator copyFrom(FieldComparator o)
public boolean isAscending()
public FieldComparator setAscending(boolean ascending)
public Collator getCollator()
public FieldComparator setCollator(Collator collator)
public String getFieldName()
public FieldComparator setFieldName(String fieldName)
FieldPath.parse(String)
.public int compare(Field o1, Field o2)
compare
in interface Comparator<Field>
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.