public class LengthOfStringSortingStrategy extends Object implements SortingStrategy
| Constructor and Description |
|---|
LengthOfStringSortingStrategy(String propertyName) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(GeObject o1,
GeObject o2,
SortDirection direction)
Compares two
GeObject. |
String |
getPropertyName() |
public LengthOfStringSortingStrategy(String propertyName)
public int compare(GeObject o1, GeObject o2, SortDirection direction)
SortingStrategyGeObject.compare in interface SortingStrategySortDirection.ASCENDING: >0 if o1 > o2 or <0 if
o1 < o2. If direction is SortDirection.DESCENDING: <0 if o1 > o2 or >0 if o1 < o2.public String getPropertyName()
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.