@groovy.transform.CompileStatic class OrderedComparator extends java.lang.Object
Support class for ordering objects that implement org.grails.datastore.mapping.core.Ordered
Modifiers | Name | Description |
---|---|---|
static int |
HIGHEST_PRECEDENCE |
Useful constant for the highest precedence value. |
static int |
LOWEST_PRECEDENCE |
Useful constant for the lowest precedence value. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Useful constant for the highest precedence value.
Useful constant for the lowest precedence value.
Find an order value indicated by the given object.
The default implementation checks against the org.grails.datastore.mapping.core.Ordered trait. Can be overridden in subclasses.
null
if none foundobj
- the object to checkDetermine the order value for the given object.
Ordered.LOWEST_PRECEDENCE
as fallbackobj
- the object to check