Package io.jmix.ui.model.impl
Class EntityValuesComparator<T>
java.lang.Object
io.jmix.ui.model.impl.AbstractComparator<T>
io.jmix.ui.model.impl.EntityValuesComparator<T>
- All Implemented Interfaces:
Comparator<T>
A comparison function, which imposes a ordering for entity attribute values.
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))
-
Field Summary
Fields inherited from class io.jmix.ui.model.impl.AbstractComparator
asc, metadata, metadataTools, nullsLast
-
Constructor Summary
ConstructorDescriptionEntityValuesComparator
(boolean asc, MetaClass metaClass, org.springframework.beans.factory.BeanFactory beanFactory) -
Method Summary
Methods inherited from class io.jmix.ui.model.impl.AbstractComparator
__compare, compareAsc
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
EntityValuesComparator
public EntityValuesComparator(boolean asc, MetaClass metaClass, org.springframework.beans.factory.BeanFactory beanFactory)
-
-
Method Details
-
compare
-
transformValue
-