public class EntityValuesComparator<T> extends AbstractComparator<T>
For example, to obtain a Comparator
that compares io.jmix.core.Entity
objects
by some property that is specified by io.jmix.core.metamodel.model.MetaPropertyPath
:
Comparator.comparing(e -> e.getValueEx(propertyPath), EntityValuesComparator.of(asc))
asc, metadata, metadataTools, nullsLast
Constructor and Description |
---|
EntityValuesComparator(boolean asc,
io.jmix.core.metamodel.model.MetaClass metaClass,
org.springframework.beans.factory.BeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
protected java.lang.Object |
transformValue(T value) |
__compare, compareAsc