Record Class EventMoveProfileDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.EventMoveProfileDTO
- Record Components:
eventType- event typehistoricalOccurrences- historical occurrencesaverageAbsoluteMovePercent- average absolute move percentmedianAbsoluteMovePercent- median absolute move percentlargestMovePercent- largest move percent
-
Constructor Summary
ConstructorsConstructorDescriptionEventMoveProfileDTO(String eventType, int historicalOccurrences, Double averageAbsoluteMovePercent, Double medianAbsoluteMovePercent, Double largestMovePercent) Creates an instance of aEventMoveProfileDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaverageAbsoluteMovePercentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventTyperecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thehistoricalOccurrencesrecord component.Returns the value of thelargestMovePercentrecord component.Returns the value of themedianAbsoluteMovePercentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventMoveProfileDTO
public EventMoveProfileDTO(String eventType, int historicalOccurrences, Double averageAbsoluteMovePercent, Double medianAbsoluteMovePercent, Double largestMovePercent) Creates an instance of aEventMoveProfileDTOrecord class.- Parameters:
eventType- the value for theeventTyperecord componenthistoricalOccurrences- the value for thehistoricalOccurrencesrecord componentaverageAbsoluteMovePercent- the value for theaverageAbsoluteMovePercentrecord componentmedianAbsoluteMovePercent- the value for themedianAbsoluteMovePercentrecord componentlargestMovePercent- the value for thelargestMovePercentrecord 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. -
eventType
-
historicalOccurrences
public int historicalOccurrences()Returns the value of thehistoricalOccurrencesrecord component.- Returns:
- the value of the
historicalOccurrencesrecord component
-
averageAbsoluteMovePercent
Returns the value of theaverageAbsoluteMovePercentrecord component.- Returns:
- the value of the
averageAbsoluteMovePercentrecord component
-
medianAbsoluteMovePercent
Returns the value of themedianAbsoluteMovePercentrecord component.- Returns:
- the value of the
medianAbsoluteMovePercentrecord component
-
largestMovePercent
Returns the value of thelargestMovePercentrecord component.- Returns:
- the value of the
largestMovePercentrecord component
-