Record Class EntityListPreferences
java.lang.Object
java.lang.Record
org.graylog2.rest.resources.entities.preferences.model.EntityListPreferences
public record EntityListPreferences(List<String> displayedAttributes, Integer perPage, SortPreferences sort)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntityListPreferences(List<String> displayedAttributes, Integer perPage, SortPreferences sort) Creates an instance of aEntityListPreferencesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayedAttributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.perPage()Returns the value of theperPagerecord component.sort()Returns the value of thesortrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntityListPreferences
public EntityListPreferences(List<String> displayedAttributes, Integer perPage, SortPreferences sort) Creates an instance of aEntityListPreferencesrecord class.- Parameters:
displayedAttributes- the value for thedisplayedAttributesrecord componentperPage- the value for theperPagerecord componentsort- the value for thesortrecord 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). -
displayedAttributes
Returns the value of thedisplayedAttributesrecord component.- Returns:
- the value of the
displayedAttributesrecord component
-
perPage
Returns the value of theperPagerecord component.- Returns:
- the value of the
perPagerecord component
-
sort
Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-