Record Class ExtensionDescriptionDto
java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.domain.datatransfer.extension.ExtensionDescriptionDto
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionDescriptionDto(ExtensionDescription description) ExtensionDescriptionDto(String name, String text, String description, IconDto icon, int priority) Creates an instance of aExtensionDescriptionDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.name()Returns the value of thenamerecord component.intpriority()Returns the value of thepriorityrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExtensionDescriptionDto
-
ExtensionDescriptionDto
public ExtensionDescriptionDto(String name, String text, String description, IconDto icon, int priority) Creates an instance of aExtensionDescriptionDtorecord class.- Parameters:
name- the value for thenamerecord componenttext- the value for thetextrecord componentdescription- the value for thedescriptionrecord componenticon- the value for theiconrecord componentpriority- the value for thepriorityrecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-