Record Class TabInformationDto
java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.domain.datatransfer.extension.TabInformationDto
public record TabInformationDto(String tabName, @Nullable IconDto icon, @Nullable List<ElementOrder> elementOrder, int tabPriority)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTabInformationDto(TabInformation tabInformation) TabInformationDto(String tabName, @Nullable IconDto icon, @Nullable List<ElementOrder> elementOrder, int tabPriority) Creates an instance of aTabInformationDtorecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable List<ElementOrder> Returns the value of theelementOrderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable IconDtoicon()Returns the value of theiconrecord component.tabName()Returns the value of thetabNamerecord component.intReturns the value of thetabPriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TabInformationDto
-
TabInformationDto
public TabInformationDto(String tabName, @Nullable IconDto icon, @Nullable List<ElementOrder> elementOrder, int tabPriority) Creates an instance of aTabInformationDtorecord class.- Parameters:
tabName- the value for thetabNamerecord componenticon- the value for theiconrecord componentelementOrder- the value for theelementOrderrecord componenttabPriority- the value for thetabPriorityrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
tabName
Returns the value of thetabNamerecord component.- Returns:
- the value of the
tabNamerecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
elementOrder
Returns the value of theelementOrderrecord component.- Returns:
- the value of the
elementOrderrecord component
-
tabPriority
public int tabPriority()Returns the value of thetabPriorityrecord component.- Returns:
- the value of the
tabPriorityrecord component
-