Package com.order.api01authgateway.dto
Record Class SortObject
java.lang.Object
java.lang.Record
com.order.api01authgateway.dto.SortObject
-
Constructor Summary
ConstructorsConstructorDescriptionSortObject(String direction, String nullHandling, boolean ascending, String property, boolean ignoreCase) Creates an instance of aSortObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theascendingrecord component.Returns 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.booleanReturns the value of theignoreCaserecord component.Returns the value of thenullHandlingrecord component.property()Returns the value of thepropertyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SortObject
public SortObject(String direction, String nullHandling, boolean ascending, String property, boolean ignoreCase) Creates an instance of aSortObjectrecord class.- Parameters:
direction- the value for thedirectionrecord componentnullHandling- the value for thenullHandlingrecord componentascending- the value for theascendingrecord componentproperty- the value for thepropertyrecord componentignoreCase- the value for theignoreCaserecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
nullHandling
Returns the value of thenullHandlingrecord component.- Returns:
- the value of the
nullHandlingrecord component
-
ascending
public boolean ascending()Returns the value of theascendingrecord component.- Returns:
- the value of the
ascendingrecord component
-
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
ignoreCase
public boolean ignoreCase()Returns the value of theignoreCaserecord component.- Returns:
- the value of the
ignoreCaserecord component
-