Class Utils
java.lang.Object
com.oracle.coherence.spring.data.support.Utils
General static utilities.
- Since:
- 3.0
- Author:
- Ryan Lubke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.tangosol.util.filter.LimitFilter
configureLimitFilter
(org.springframework.data.domain.Pageable pageable, com.tangosol.util.Filter filter) Configure aLimitFilter
based on the providedPageable
.static <T> com.tangosol.util.function.Remote.Comparator<? super T>
toComparator
(org.springframework.data.domain.Sort sort) Convert SpringSort
toRemote.Comparator
.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
toComparator
@Nullable public static <T> com.tangosol.util.function.Remote.Comparator<? super T> toComparator(@NonNull org.springframework.data.domain.Sort sort) Convert SpringSort
toRemote.Comparator
.- Type Parameters:
T
- the entity type- Parameters:
sort
- the spring sort configuration- Returns:
- a
Remote.Comparator
based on the providedSort
-
configureLimitFilter
@Nullable public static com.tangosol.util.filter.LimitFilter configureLimitFilter(org.springframework.data.domain.Pageable pageable, com.tangosol.util.Filter filter) Configure aLimitFilter
based on the providedPageable
.- Parameters:
pageable
- thePageable
to configurefilter
- theFilter
to be limited- Returns:
- the configured
LimitFilter
or null ifPageable.isPaged()
isfalse
-