Record Class CorporateEvents.SpinOff
java.lang.Object
java.lang.Record
com.quantfinlib.data.CorporateEvents.SpinOff
- Record Components:
childSymbol- symbol of the new instrumentchildIsin- ISIN of the new instrumentratio- child shares distributed per parent sharechildPrice- reference price of the child (first regular-way close)
- All Implemented Interfaces:
CorporateEvents.Event
- Enclosing class:
CorporateEvents
public static record CorporateEvents.SpinOff(long exTimestamp, String childSymbol, String childIsin, double ratio, double childPrice)
extends Record
implements CorporateEvents.Event
Spin-off of a new instrument.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechildIsinrecord component.doubleReturns the value of thechildPricerecord component.Returns the value of thechildSymbolrecord 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.doubleratio()Returns the value of theratiorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpinOff
public SpinOff(long exTimestamp, String childSymbol, String childIsin, double ratio, double childPrice) Creates an instance of aSpinOffrecord class.- Parameters:
exTimestamp- the value for theexTimestamprecord componentchildSymbol- the value for thechildSymbolrecord componentchildIsin- the value for thechildIsinrecord componentratio- the value for theratiorecord componentchildPrice- the value for thechildPricerecord 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
-
childSymbol
Returns the value of thechildSymbolrecord component.- Returns:
- the value of the
childSymbolrecord component
-
childIsin
-
ratio
-
childPrice
public double childPrice()Returns the value of thechildPricerecord component.- Returns:
- the value of the
childPricerecord component
-