public static interface AMImageQueryBuilder.FuzzySortStep extends AMImageQueryBuilder.FinalStep
Modifier and Type | Method and Description |
---|---|
<V> AMImageQueryBuilder.FuzzySortStep |
with(AMAttribute<AMImageProcessor,V> amAttribute,
java.util.Optional<V> valueOptional)
An intermediate method that sorts the adaptive media based on
specific attribute values.
|
<V> AMImageQueryBuilder.FuzzySortStep |
with(AMAttribute<AMImageProcessor,V> amAttribute,
V value)
An intermediate method that sorts the adaptive media based on
specific attribute values.
|
done
<V> AMImageQueryBuilder.FuzzySortStep with(AMAttribute<AMImageProcessor,V> amAttribute, java.util.Optional<V> valueOptional)
The distance comparator is implemented based on the value returned by
the method AMAttribute.distance(Object, Object)
.
If the method AMImageQueryBuilder.StrictSortStep.orderBy(com.liferay.adaptive.media.AMAttribute<com.liferay.adaptive.media.image.processor.AMImageProcessor, V>, com.liferay.adaptive.media.image.finder.AMImageQueryBuilder.SortOrder)
is invoked in the same
query builder, it takes precedence and this method has no effect.
If this method is invoked with multiple attributes, they will be used in the following order:
amAttribute
- the attribute used to sort the adaptive media
imagesvalueOptional
- a non-null
optional value for the
attribute<V> AMImageQueryBuilder.FuzzySortStep with(AMAttribute<AMImageProcessor,V> amAttribute, V value)
The distance comparator is implemented based on the value returned by
the method AMAttribute.distance(Object, Object)
.
If the method AMImageQueryBuilder.StrictSortStep.orderBy(com.liferay.adaptive.media.AMAttribute<com.liferay.adaptive.media.image.processor.AMImageProcessor, V>, com.liferay.adaptive.media.image.finder.AMImageQueryBuilder.SortOrder)
is invoked in the same
query builder, it takes precedence and this method has no effect.
If this method is invoked with multiple attributes, they will be used in the following order:
amAttribute
- the attribute used to sort the adaptive media
imagesvalue
- the attribute's value