Record Class CorporateEvents.Dividend
java.lang.Object
java.lang.Record
com.quantfinlib.data.CorporateEvents.Dividend
- All Implemented Interfaces:
CorporateEvents.Event
- Enclosing class:
CorporateEvents
public static record CorporateEvents.Dividend(long exTimestamp, double amount, CorporateEvents.DividendKind kind)
extends Record
implements CorporateEvents.Event
Cash dividend tagged regular or special.
-
Constructor Summary
ConstructorsConstructorDescriptionDividend(long exTimestamp, double amount, CorporateEvents.DividendKind kind) Creates an instance of aDividendrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleamount()Returns the value of theamountrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexTimestamprecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Dividend
Creates an instance of aDividendrecord class.- Parameters:
exTimestamp- the value for theexTimestamprecord componentamount- the value for theamountrecord componentkind- the value for thekindrecord 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. -
exTimestamp
public long exTimestamp()Returns the value of theexTimestamprecord component.- Specified by:
exTimestampin interfaceCorporateEvents.Event- Returns:
- the value of the
exTimestamprecord component
-
amount
public double amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-