- Type Parameters:
T- the type of the orderable class.
- All Known Subinterfaces:
EntityRepositoryProvider,ORMConverterProvider,ORMReflectionProvider,ProjectionRepositoryProvider,Provider,QueryBuilderProvider,SqlDialectProvider
- All Known Implementing Classes:
DefaultEntityRepositoryProviderImpl,DefaultORMReflectionProviderImpl,DefaultProjectionRepositoryProviderImpl,DefaultQueryBuilderProviderImpl,DefaultSqlDialectProviderImpl
public interface Orderable<T extends Orderable<T>>
Interface for classes that can be ordered.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic @interfaceOrdering constraint that indicates that the current class should come after the specified classes.static @interfaceOrdering constraint that indicates that the current class should come after any other class.static @interfaceOrdering constraint that indicates that the current class should come before the specified classes.static @interfaceOrdering constraint that indicates that the current class should come before any other class. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionSorts the providedOrderableinstances based on the ordering constraints defined by the orderable constraints.Sorts the providedOrderableinstances based on the ordering constraints defined by the orderable constraints.Sorts the providedOrderableinstances based on the ordering constraints defined by the orderable constraints.Sorts the providedOrderableinstances based on the ordering constraints defined by the orderable constraints.
-
Method Details
-
sort
Sorts the providedOrderableinstances based on the ordering constraints defined by the orderable constraints.- Type Parameters:
T- the type parameter for theOrderableinstances.- Parameters:
orderables- the orderable instances to sort.- Returns:
- the sorted orderable instances.
-
sort
Sorts the providedOrderableinstances based on the ordering constraints defined by the orderable constraints.- Type Parameters:
T- the type parameter for theOrderableinstances.- Parameters:
orderables- the orderable instances to sort.cache- use caching for improved performance.- Returns:
- the sorted orderable instances.
-
sort
Sorts the providedOrderableinstances based on the ordering constraints defined by the orderable constraints.- Type Parameters:
T- the type parameter for theOrderableinstances.- Parameters:
orderableStream- the orderable instances to sort.- Returns:
- the sorted orderable instances.
-
sort
Sorts the providedOrderableinstances based on the ordering constraints defined by the orderable constraints.- Type Parameters:
T- the type parameter for theOrderableinstances.- Parameters:
orderableStream- the orderable instances to sort.cache- use caching for improved performance.- Returns:
- the sorted orderable instances.
-