Record Class CorporateEvents.RightsIssue
java.lang.Object
java.lang.Record
com.quantfinlib.data.CorporateEvents.RightsIssue
- All Implemented Interfaces:
CorporateEvents.Event
- Enclosing class:
CorporateEvents
public static record CorporateEvents.RightsIssue(long exTimestamp, double ratio, double subscriptionPrice)
extends Record
implements CorporateEvents.Event
Rights issue:
ratio new shares per old share at subscriptionPrice.-
Constructor Summary
ConstructorsConstructorDescriptionRightsIssue(long exTimestamp, double ratio, double subscriptionPrice) Creates an instance of aRightsIssuerecord 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.doubleratio()Returns the value of theratiorecord component.doubleReturns the value of thesubscriptionPricerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RightsIssue
public RightsIssue(long exTimestamp, double ratio, double subscriptionPrice) Creates an instance of aRightsIssuerecord class.- Parameters:
exTimestamp- the value for theexTimestamprecord componentratio- the value for theratiorecord componentsubscriptionPrice- the value for thesubscriptionPricerecord 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
-
ratio
public double ratio()Returns the value of theratiorecord component.- Returns:
- the value of the
ratiorecord component
-
subscriptionPrice
public double subscriptionPrice()Returns the value of thesubscriptionPricerecord component.- Returns:
- the value of the
subscriptionPricerecord component
-