Portfolio

@Entity
open class Portfolio : Identifiable, UpdatableValues

Constructors

Link copied to clipboard
constructor()
constructor(user: ProductUser)
constructor(user: ProductUser, assets: List<PortfolioAsset>)
constructor(dollarBalance: Double, shareBalance: Double, totalWorth: Double)
constructor(assets: List<PortfolioAsset>)
constructor(user: ProductUser, dollarBalance: Double, shareBalance: Double, totalWorth: Double, lastUpdated: LocalDateTime, assets: List<PortfolioAsset>, portfolioHistory: List<PortfolioHistory>)

Functions

Link copied to clipboard
open fun addAsset(asset: PortfolioAsset)
Link copied to clipboard
open fun addPortfolioHistory(portfolioHistory: PortfolioHistory)
Link copied to clipboard
Link copied to clipboard
open fun equals(object: Any): Boolean
Link copied to clipboard
open fun from(portfolio: Portfolio): Portfolio
Link copied to clipboard
open fun getId(): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun setId(id: Long)
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun updateValues()