public class DataComparer
extends com.sap.cloud.server.odata.core.Comparer
For internal use only.
| Modifier and Type | Field and Description |
|---|---|
static com.sap.cloud.server.odata.core.Comparer |
singleton |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object left,
java.lang.Object right)
Compare two values for sorting.
|
public int compare(java.lang.Object left,
java.lang.Object right)
Compare two values for sorting.
compare in class com.sap.cloud.server.odata.core.Comparerleft - (nullable) First value for comparison.right - (nullable) Second value for comparison.left is equal to right in sorted order, a negative value (e.g. -1) if left is less than right in sorted order, or a positive value (e.g. 1) if left is greater than right in sorted order.