Record Class CorporateEvents.SymbolChange
java.lang.Object
java.lang.Record
com.quantfinlib.data.CorporateEvents.SymbolChange
- All Implemented Interfaces:
CorporateEvents.Event
- Enclosing class:
CorporateEvents
public static record CorporateEvents.SymbolChange(long exTimestamp, String newSymbol, String newIsin)
extends Record
implements CorporateEvents.Event
Symbol and/or ISIN change; no economic effect.
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolChange(long exTimestamp, String newSymbol, String newIsin) Creates an instance of aSymbolChangerecord 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.newIsin()Returns the value of thenewIsinrecord component.Returns the value of thenewSymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SymbolChange
Creates an instance of aSymbolChangerecord class.- Parameters:
exTimestamp- the value for theexTimestamprecord componentnewSymbol- the value for thenewSymbolrecord componentnewIsin- the value for thenewIsinrecord 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
-
newSymbol
Returns the value of thenewSymbolrecord component.- Returns:
- the value of the
newSymbolrecord component
-
newIsin
Returns the value of thenewIsinrecord component.- Returns:
- the value of the
newIsinrecord component
-