Record Class CorporateEventPositions.Holding
java.lang.Object
java.lang.Record
com.quantfinlib.data.CorporateEventPositions.Holding
- Enclosing class:
CorporateEventPositions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thecostBasisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.isin()Returns the value of theisinrecord component.doubleshares()Returns the value of thesharesrecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Holding
Creates an instance of aHoldingrecord class.- Parameters:
symbol- the value for thesymbolrecord componentisin- the value for theisinrecord componentshares- the value for thesharesrecord componentcostBasis- the value for thecostBasisrecord 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. -
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
isin
Returns the value of theisinrecord component.- Returns:
- the value of the
isinrecord component
-
costBasis
public double costBasis()Returns the value of thecostBasisrecord component.- Returns:
- the value of the
costBasisrecord component
-