Record Class CorporateActions.CorporateAction
java.lang.Object
java.lang.Record
com.quantfinlib.data.CorporateActions.CorporateAction
- Record Components:
exTimestamp- first bar timestamp trading on the adjusted basisvalue- split ratio (2 = 2-for-1) or cash dividend per share
- Enclosing class:
CorporateActions
public static record CorporateActions.CorporateAction(long exTimestamp, CorporateActions.Type type, double value)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCorporateAction(long exTimestamp, CorporateActions.Type type, double value) Creates an instance of aCorporateActionrecord 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.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.doublevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
CorporateAction
Creates an instance of aCorporateActionrecord class.- Parameters:
exTimestamp- the value for theexTimestamprecord componenttype- the value for thetyperecord componentvalue- the value for thevaluerecord 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.- Returns:
- the value of the
exTimestamprecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
value
-