/** * Sets the hasDeliverable value. * * @param inHasDeliverable a <code>boolean</code> value * @return a <code>ImbalanceEventBuilder</code> value */ public final ImbalanceEventBuilder hasDeliverable(boolean inHasDeliverable) { option.setHasDeliverable(inHasDeliverable); return this; } /**
/** * Sets the hasDeliverable value. * * @param inHasDeliverable a <code>boolean</code> value * @return a <code>QuoteEventBuilder<E></code> value */ public QuoteEventBuilder<E> hasDeliverable(boolean inHasDeliverable) { option.setHasDeliverable(inHasDeliverable); return this; } /**
/** * Sets the hasDeliverable value. * * @param inHasDeliverable a <code>boolean</code> value * @return a <code>MarketstatEventBuilder</code> value */ public final MarketstatEventBuilder hasDeliverable(boolean inHasDeliverable) { option.setHasDeliverable(inHasDeliverable); return this; } /**
/** * Sets the hasDeliverable value. * * @param inHasDeliverable a <code>boolean</code> value * @return a <code>TradeEventBuilder</code> value */ @Override public TradeEventBuilder<E> hasDeliverable(boolean inHasDeliverable) { option.setHasDeliverable(inHasDeliverable); return this; } /**
/** * Copies all member attributes from the donor to the recipient. * * @param inDonor an <code>OptionBean</code> value * @param inRecipient an <code>OptionBean</code> value */ protected static void copyAttributes(OptionBean inDonor, OptionBean inRecipient) { inRecipient.setExpirationType(inDonor.getExpirationType()); inRecipient.setHasDeliverable(inDonor.hasDeliverable()); inRecipient.setInstrument(inDonor.getInstrument()); inRecipient.setMultiplier(inDonor.getMultiplier()); inRecipient.setProviderSymbol(inDonor.getProviderSymbol()); inRecipient.setUnderlyingInstrument(inDonor.getUnderlyingInstrument()); } /**
/** * Builds an <code>OptionBean</code> based on the values of * the given event. * * @param inOptionEvent an <code>OptionEvent</code> value * @return an <code>OptionBean</code> value */ public static OptionBean getOptionBeanFromEvent(OptionEvent inOptionEvent) { OptionBean option = new OptionBean(); option.setExpirationType(inOptionEvent.getExpirationType()); option.setHasDeliverable(inOptionEvent.hasDeliverable()); option.setInstrument(inOptionEvent.getInstrument()); option.setMultiplier(inOptionEvent.getMultiplier()); option.setUnderlyingInstrument(inOptionEvent.getUnderlyingInstrument()); option.setProviderSymbol(inOptionEvent.getProviderSymbol()); return option; } /**
option.setUnderlyingInstrument(inUnderlyingInstrument); option.setExpirationType(inExpirationType); option.setHasDeliverable(inHasDeliverable); option.setMultiplier(inMultiplier); option.validate();