java.lang.Object
java.lang.Record
org.tentackle.model.AttributeSorting
- Record Components:
attribute- the attributecolumnSuffix- the optional column suffix for multi-column types, null if nonesortType- the sort type
public record AttributeSorting(Attribute attribute, String columnSuffix, SortType sortType)
extends Record
Describes the sorting of an attribute.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeSorting(Attribute attribute, String columnSuffix, SortType sortType) Creates an instance of aAttributeSortingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributerecord component.Returns the value of thecolumnSuffixrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sortType()Returns the value of thesortTyperecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
AttributeSorting
Creates an instance of aAttributeSortingrecord class.- Parameters:
attribute- the value for theattributerecord componentcolumnSuffix- the value for thecolumnSuffixrecord componentsortType- the value for thesortTyperecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
attribute
Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-
columnSuffix
Returns the value of thecolumnSuffixrecord component.- Returns:
- the value of the
columnSuffixrecord component
-
sortType
Returns the value of thesortTyperecord component.- Returns:
- the value of the
sortTyperecord component
-