Class Utils
- java.lang.Object
 - 
- com.oracle.coherence.spring.data.support.Utils
 
 
- 
public class Utils extends java.lang.ObjectGeneral static utilities.- Since:
 - 3.0
 - Author:
 - Ryan Lubke
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Utils() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.tangosol.util.filter.LimitFilterconfigureLimitFilter(org.springframework.data.domain.Pageable pageable, com.tangosol.util.Filter filter)Configure aLimitFilterbased on the providedPageable.static <T> com.tangosol.util.function.Remote.Comparator<? super T>toComparator(org.springframework.data.domain.Sort sort)Convert SpringSorttoRemote.Comparator. 
 - 
 
- 
- 
Method Detail
- 
toComparator
@Nullable public static <T> com.tangosol.util.function.Remote.Comparator<? super T> toComparator(@NonNull org.springframework.data.domain.Sort sort)
Convert SpringSorttoRemote.Comparator.- Type Parameters:
 T- the entity type- Parameters:
 sort- the spring sort configuration- Returns:
 - a 
Remote.Comparatorbased 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 aLimitFilterbased on the providedPageable.- Parameters:
 pageable- thePageableto configurefilter- theFilterto be limited- Returns:
 - the configured 
LimitFilteror null ifPageable.isPaged()isfalse 
 
 - 
 
 -