Record Class PointInTimeUniverse.TerminalEvent
java.lang.Object
java.lang.Record
com.quantfinlib.data.PointInTimeUniverse.TerminalEvent
- Record Components:
timestamp- when the event takes effect (first bar at/after it applies the event)type- delisting or mergerdelistingReturn- final-day return on the last close (delistings; 0 for mergers)- merger cash component per share- merger stock component per shareacquirer- acquirer symbol (nullfor delistings and all-cash deals)
- Enclosing class:
PointInTimeUniverse
public static record PointInTimeUniverse.TerminalEvent(long timestamp, PointInTimeUniverse.EventType type, double delistingReturn, double cashPerShare, double acquirerSharesPerShare, String acquirer)
extends Record
A security's terminal event.
-
Constructor Summary
ConstructorsConstructorDescriptionTerminalEvent(long timestamp, PointInTimeUniverse.EventType type, double delistingReturn, double cashPerShare, double acquirerSharesPerShare, String acquirer) Creates an instance of aTerminalEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionacquirer()Returns the value of theacquirerrecord component.doubleReturns the value of theacquirerSharesPerSharerecord component.doubleReturns the value of thecashPerSharerecord component.doubleReturns the value of thedelistingReturnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TerminalEvent
public TerminalEvent(long timestamp, PointInTimeUniverse.EventType type, double delistingReturn, double cashPerShare, double acquirerSharesPerShare, String acquirer) Creates an instance of aTerminalEventrecord class.- Parameters:
timestamp- the value for thetimestamprecord componenttype- the value for thetyperecord componentdelistingReturn- the value for thedelistingReturnrecord componentcashPerShare- the value for thecashPerSharerecord componentacquirerSharesPerShare- the value for theacquirerSharesPerSharerecord componentacquirer- the value for theacquirerrecord 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. -
timestamp
-
type
-
delistingReturn
public double delistingReturn()Returns the value of thedelistingReturnrecord component.- Returns:
- the value of the
delistingReturnrecord component
-
acquirer
-