Record Class CorporateEvents.CashStockMerger
java.lang.Object
java.lang.Record
com.quantfinlib.data.CorporateEvents.CashStockMerger
- Record Components:
acquirerSymbol- acquirer symbolacquirerIsin- acquirer ISIN- cash paid per target share under a cash election- acquirer shares per target share under a stock electionmaxCashFraction- fraction of all target shares the deal will pay in cash; if cash elections exceed it, cash electors are proratedacquirerPrice- acquirer price used for cash in lieu of fractions
- All Implemented Interfaces:
CorporateEvents.Event
- Enclosing class:
CorporateEvents
public static record CorporateEvents.CashStockMerger(long exTimestamp, String acquirerSymbol, String acquirerIsin, double cashPerShare, double stockPerShare, double maxCashFraction, double acquirerPrice)
extends Record
implements CorporateEvents.Event
Cash-and-stock merger with holder election and proration.
-
Constructor Summary
ConstructorsConstructorDescriptionCashStockMerger(long exTimestamp, String acquirerSymbol, String acquirerIsin, double cashPerShare, double stockPerShare, double maxCashFraction, double acquirerPrice) Creates an instance of aCashStockMergerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacquirerIsinrecord component.doubleReturns the value of theacquirerPricerecord component.Returns the value of theacquirerSymbolrecord component.doubleReturns the value of thecashPerSharerecord 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.doubleReturns the value of themaxCashFractionrecord component.doubleReturns the value of thestockPerSharerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CashStockMerger
public CashStockMerger(long exTimestamp, String acquirerSymbol, String acquirerIsin, double cashPerShare, double stockPerShare, double maxCashFraction, double acquirerPrice) Creates an instance of aCashStockMergerrecord class.- Parameters:
exTimestamp- the value for theexTimestamprecord componentacquirerSymbol- the value for theacquirerSymbolrecord componentacquirerIsin- the value for theacquirerIsinrecord componentcashPerShare- the value for thecashPerSharerecord componentstockPerShare- the value for thestockPerSharerecord componentmaxCashFraction- the value for themaxCashFractionrecord componentacquirerPrice- the value for theacquirerPricerecord 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
-
acquirerSymbol
Returns the value of theacquirerSymbolrecord component.- Returns:
- the value of the
acquirerSymbolrecord component
-
acquirerIsin
Returns the value of theacquirerIsinrecord component.- Returns:
- the value of the
acquirerIsinrecord component
-
maxCashFraction
public double maxCashFraction()Returns the value of themaxCashFractionrecord component.- Returns:
- the value of the
maxCashFractionrecord component
-
acquirerPrice
public double acquirerPrice()Returns the value of theacquirerPricerecord component.- Returns:
- the value of the
acquirerPricerecord component
-