Package it.tidalwave.util.spring.jpa
Record Class JpaSpecificationFinder.JpaSorter
java.lang.Object
java.lang.Record
it.tidalwave.util.spring.jpa.JpaSpecificationFinder.JpaSorter
- Enclosing class:
- JpaSpecificationFinder<M,
E, F extends it.tidalwave.util.Finder<M>, R extends org.springframework.data.jpa.repository.JpaSpecificationExecutor<E>>
public static record JpaSpecificationFinder.JpaSorter(@Nonnull it.tidalwave.util.spring.jpa.JpaSpecificationFinder.JpaSortCriterion criterion, @Nonnull it.tidalwave.util.Finder.SortDirection direction)
extends Record
-
Constructor Summary
ConstructorDescriptionJpaSorter
(it.tidalwave.util.spring.jpa.JpaSpecificationFinder.JpaSortCriterion criterion, it.tidalwave.util.Finder.SortDirection direction) Creates an instance of aJpaSorter
record class. -
Method Summary
Modifier and TypeMethodDescriptionit.tidalwave.util.spring.jpa.JpaSpecificationFinder.JpaSortCriterion
Returns the value of thecriterion
record component.it.tidalwave.util.Finder.SortDirection
Returns the value of thedirection
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.springframework.data.domain.Sort.Order
toOrder()
toString()
Returns a string representation of this record class.
-
Constructor Details
-
JpaSorter
public JpaSorter(@Nonnull it.tidalwave.util.spring.jpa.JpaSpecificationFinder.JpaSortCriterion criterion, @Nonnull it.tidalwave.util.Finder.SortDirection direction) Creates an instance of aJpaSorter
record class.- Parameters:
criterion
- the value for thecriterion
record componentdirection
- the value for thedirection
record component
-
-
Method Details
-
toOrder
@Nonnull public org.springframework.data.domain.Sort.Order toOrder() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
criterion
@Nonnull public it.tidalwave.util.spring.jpa.JpaSpecificationFinder.JpaSortCriterion criterion()Returns the value of thecriterion
record component.- Returns:
- the value of the
criterion
record component
-
direction
@Nonnull public it.tidalwave.util.Finder.SortDirection direction()Returns the value of thedirection
record component.- Returns:
- the value of the
direction
record component
-