Record Class FestivalPerformanceRequest
java.lang.Object
java.lang.Record
org.localify.festival.dto.request.FestivalPerformanceRequest
- Record Components:
artists- The list of artists in the performance.stageName- The name of the stage.stageAddress- The address of the stage.startTime- The start time of the performance.endTime- The end time of the performance.performanceName- The name of the performance.
public record FestivalPerformanceRequest(@NotNull @NotEmpty List<FestivalArtistRequest> artists, String stageName, String stageAddress, String startTime, String endTime, String performanceName)
extends Record
Represents a request to add a performance to a festival.
-
Constructor Summary
ConstructorsConstructorDescriptionFestivalPerformanceRequest(@NotNull @NotEmpty List<FestivalArtistRequest> artists, String stageName, String stageAddress, String startTime, String endTime, String performanceName) Creates an instance of aFestivalPerformanceRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull @NotEmpty List<FestivalArtistRequest>artists()Returns the value of theartistsrecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theperformanceNamerecord component.Returns the value of thestageAddressrecord component.Returns the value of thestageNamerecord component.Returns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FestivalPerformanceRequest
public FestivalPerformanceRequest(@NotNull @NotEmpty @NotNull @NotEmpty List<FestivalArtistRequest> artists, String stageName, String stageAddress, String startTime, String endTime, String performanceName) Creates an instance of aFestivalPerformanceRequestrecord class.- Parameters:
artists- the value for theartistsrecord componentstageName- the value for thestageNamerecord componentstageAddress- the value for thestageAddressrecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentperformanceName- the value for theperformanceNamerecord 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). -
artists
Returns the value of theartistsrecord component.- Returns:
- the value of the
artistsrecord component
-
stageName
Returns the value of thestageNamerecord component.- Returns:
- the value of the
stageNamerecord component
-
stageAddress
Returns the value of thestageAddressrecord component.- Returns:
- the value of the
stageAddressrecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
performanceName
Returns the value of theperformanceNamerecord component.- Returns:
- the value of the
performanceNamerecord component
-