Record Class CorporateEvents.StockDividend
java.lang.Object
java.lang.Record
com.quantfinlib.data.CorporateEvents.StockDividend
- All Implemented Interfaces:
CorporateEvents.Event
- Enclosing class:
CorporateEvents
public static record CorporateEvents.StockDividend(long exTimestamp, double rate)
extends Record
implements CorporateEvents.Event
Stock dividend or bonus issue:
rate new shares per share held (0.05 = 5 %).-
Constructor Summary
ConstructorsConstructorDescriptionStockDividend(long exTimestamp, double rate) Creates an instance of aStockDividendrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.doublerate()Returns the value of theraterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StockDividend
public StockDividend(long exTimestamp, double rate) Creates an instance of aStockDividendrecord class.- Parameters:
exTimestamp- the value for theexTimestamprecord componentrate- the value for theraterecord 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. All components in this record class 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
-
rate
public double rate()Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-