Record Class EventFileDTO
java.lang.Object
java.lang.Record
com.endurancetrio.business.event.dto.EventFileDTO
- Record Components:
id- the unique identifier of the file (nullable for unpersisted DTOs)title- the display title of the filefileType- the type of the file (e.g. GUIDE, RULES, POSTER)fileName- the file name used for downloading
The
EventFileDTO represents a downloadable file associated with an event.-
Constructor Summary
ConstructorsConstructorDescriptionEventFileDTO(Long id, String title, String fileType, String fileName) Creates an instance of aEventFileDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.fileType()Returns the value of thefileTyperecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
fileType
Returns the value of thefileTyperecord component.- Returns:
- the value of the
fileTyperecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-