Record Class SymbolAnalysisEventSummaryDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.SymbolAnalysisEventSummaryDTO
- Record Components:
available- availablenote- notenextEarnings- next earningsupcomingEvents- upcoming eventsearningsMoveProfile- earnings move profile
public record SymbolAnalysisEventSummaryDTO(boolean available, String note, SymbolUpcomingEventDTO nextEarnings, List<SymbolUpcomingEventDTO> upcomingEvents, EventMoveProfileDTO earningsMoveProfile)
extends Record
Event-summary DTO.
- Version:
- 2.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolAnalysisEventSummaryDTO(boolean available, String note, SymbolUpcomingEventDTO nextEarnings, List<SymbolUpcomingEventDTO> upcomingEvents, EventMoveProfileDTO earningsMoveProfile) Creates an instance of aSymbolAnalysisEventSummaryDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theavailablerecord component.Returns the value of theearningsMoveProfilerecord component.empty()Creates an empty DTO shell.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 thenextEarningsrecord component.note()Returns the value of thenoterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupcomingEventsrecord component.
-
Constructor Details
-
SymbolAnalysisEventSummaryDTO
public SymbolAnalysisEventSummaryDTO(boolean available, String note, SymbolUpcomingEventDTO nextEarnings, List<SymbolUpcomingEventDTO> upcomingEvents, EventMoveProfileDTO earningsMoveProfile) Creates an instance of aSymbolAnalysisEventSummaryDTOrecord class.- Parameters:
available- the value for theavailablerecord componentnote- the value for thenoterecord componentnextEarnings- the value for thenextEarningsrecord componentupcomingEvents- the value for theupcomingEventsrecord componentearningsMoveProfile- the value for theearningsMoveProfilerecord component
-
-
Method Details
-
empty
Creates an empty DTO shell.- Returns:
SymbolAnalysisEventSummaryDTO
-
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. -
available
-
note
-
nextEarnings
Returns the value of thenextEarningsrecord component.- Returns:
- the value of the
nextEarningsrecord component
-
upcomingEvents
Returns the value of theupcomingEventsrecord component.- Returns:
- the value of the
upcomingEventsrecord component
-
earningsMoveProfile
Returns the value of theearningsMoveProfilerecord component.- Returns:
- the value of the
earningsMoveProfilerecord component
-