/** * Sets the market value of the position in the portfolio default currency * (and exchange currency if it differs). * * @param marketValue market value of the position in the portfolio default * currency (and exchange currency if it differs) or <code>null</code> to * reset */ public void setMarketValue(MarketValue marketValue) { if (marketValue == null) { removeExtension(MarketValue.class); } else { setExtension(marketValue); } }
/** * Sets the gain for the position in the portfolio default currency (and * exchange currency if it differs). * * @param gain gain for the position in the portfolio default currency (and * exchange currency if it differs) or <code>null</code> to reset */ public void setGain(Gain gain) { if (gain == null) { removeExtension(Gain.class); } else { setExtension(gain); } }
/** * Sets the market value of the position in the portfolio default currency * (and exchange currency if it differs). * * @param marketValue market value of the position in the portfolio default * currency (and exchange currency if it differs) or <code>null</code> to * reset */ public void setMarketValue(MarketValue marketValue) { if (marketValue == null) { removeExtension(MarketValue.class); } else { setExtension(marketValue); } }
/** * Sets the today's gain for the position in the portfolio default currency * (and exchange currency if it differs). * * @param daysGain today's gain for the position in the portfolio default * currency (and exchange currency if it differs) or <code>null</code> to * reset */ public void setDaysGain(DaysGain daysGain) { if (daysGain == null) { removeExtension(DaysGain.class); } else { setExtension(daysGain); } }
/** * Sets the cost basis of the position in the portfolio default currency (and * exchange currency if it differs). * * @param costBasis cost basis of the position in the portfolio default * currency (and exchange currency if it differs) or <code>null</code> to * reset */ public void setCostBasis(CostBasis costBasis) { if (costBasis == null) { removeExtension(CostBasis.class); } else { setExtension(costBasis); } }
/** * Sets the gain for the position in the portfolio default currency (and * exchange currency if it differs). * * @param gain gain for the position in the portfolio default currency (and * exchange currency if it differs) or <code>null</code> to reset */ public void setGain(Gain gain) { if (gain == null) { removeExtension(Gain.class); } else { setExtension(gain); } }
/** * Sets the cost basis of the position in the portfolio default currency (and * exchange currency if it differs). * * @param costBasis cost basis of the position in the portfolio default * currency (and exchange currency if it differs) or <code>null</code> to * reset */ public void setCostBasis(CostBasis costBasis) { if (costBasis == null) { removeExtension(CostBasis.class); } else { setExtension(costBasis); } }
/** * Sets the today's gain for the position in the portfolio default currency * (and exchange currency if it differs). * * @param daysGain today's gain for the position in the portfolio default * currency (and exchange currency if it differs) or <code>null</code> to * reset */ public void setDaysGain(DaysGain daysGain) { if (daysGain == null) { removeExtension(DaysGain.class); } else { setExtension(daysGain); } }