Class OptionalSortPositionRequest
java.lang.Object
com.broadleafcommerce.catalog.web.endpoint.support.OptionalSortPositionRequest
A simple alternative to
SortPositionRequest
that is optimized for create endpoints (which
will not have an SortPositionRequest.updateContextId
) who want to distinguish between
requests that want to apply an initial sort and those who don't.- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
SortPositionRequest
-
Constructor Summary
ConstructorDescriptionOptionalSortPositionRequest
(String after, String before, Boolean shouldSort) -
Method Summary
-
Constructor Details
-
OptionalSortPositionRequest
-
-
Method Details
-
getAfter
- See Also:
-
SortPositionRequest.positionAfterContextId
-
getBefore
- See Also:
-
SortPositionRequest.positionBeforeContextId
-
isShouldSort
public boolean isShouldSort()A flag dictating whether sorting should be performed.- Returns:
- true if sorting should be performed, false otherwise
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-