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
ConstructorsConstructorDescriptionJpaSorter(it.tidalwave.util.spring.jpa.JpaSpecificationFinder.JpaSortCriterion criterion, it.tidalwave.util.Finder.SortDirection direction) Creates an instance of aJpaSorterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionit.tidalwave.util.spring.jpa.JpaSpecificationFinder.JpaSortCriterionReturns the value of thecriterionrecord component.it.tidalwave.util.Finder.SortDirectionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.springframework.data.domain.Sort.OrdertoOrder()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 aJpaSorterrecord class.- Parameters:
criterion- the value for thecriterionrecord componentdirection- the value for thedirectionrecord 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 thecriterionrecord component.- Returns:
- the value of the
criterionrecord component
-
direction
@Nonnull public it.tidalwave.util.Finder.SortDirection direction()Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-