Record Class CorporateEvents.ReverseSplit
java.lang.Object
java.lang.Record
com.quantfinlib.data.CorporateEvents.ReverseSplit
- All Implemented Interfaces:
CorporateEvents.Event
- Enclosing class:
CorporateEvents
public static record CorporateEvents.ReverseSplit(long exTimestamp, double oldPerNew)
extends Record
implements CorporateEvents.Event
Reverse split:
oldPerNew old shares are consolidated into one.-
Constructor Summary
ConstructorsConstructorDescriptionReverseSplit(long exTimestamp, double oldPerNew) Creates an instance of aReverseSplitrecord 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.doubleReturns the value of theoldPerNewrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReverseSplit
public ReverseSplit(long exTimestamp, double oldPerNew) Creates an instance of aReverseSplitrecord class.- Parameters:
exTimestamp- the value for theexTimestamprecord componentoldPerNew- the value for theoldPerNewrecord 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
-
oldPerNew
public double oldPerNew()Returns the value of theoldPerNewrecord component.- Returns:
- the value of the
oldPerNewrecord component
-