Package org.ametys.plugins.forms.helper
Record Class FormEntriesSearchHelper.FormEntryColumn
java.lang.Object
java.lang.Record
org.ametys.plugins.forms.helper.FormEntriesSearchHelper.FormEntryColumn
- Record Components:
modelItem- the model itemquestion- the form question (can be null if the model item is not a question)sortFieldName- the sort field name (can be null if the column is not sortable)
- Enclosing class:
FormEntriesSearchHelper
public static record FormEntriesSearchHelper.FormEntryColumn(ModelItem modelItem, FormQuestion question, String sortFieldName)
extends Record
A form entry column
-
Constructor Summary
ConstructorsConstructorDescriptionFormEntryColumn(ModelItem modelItem, FormQuestion question, String sortFieldName) Creates an instance of aFormEntryColumnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themodelItemrecord component.question()Returns the value of thequestionrecord component.Returns the value of thesortFieldNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FormEntryColumn
Creates an instance of aFormEntryColumnrecord class.- Parameters:
modelItem- the value for themodelItemrecord componentquestion- the value for thequestionrecord componentsortFieldName- the value for thesortFieldNamerecord 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
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). -
modelItem
Returns the value of themodelItemrecord component.- Returns:
- the value of the
modelItemrecord component
-
question
Returns the value of thequestionrecord component.- Returns:
- the value of the
questionrecord component
-
sortFieldName
Returns the value of thesortFieldNamerecord component.- Returns:
- the value of the
sortFieldNamerecord component
-