/** * Create a new OptionImbalanceEvent instance. * * <p>This constructor is intended to be used by JAXB. */ @SuppressWarnings("unused") private OptionImbalanceEvent() { option = new OptionBean(); } /**
/** * Create a new OptionTradeEventImpl instance. * * <p>This constructor is intended to be used by JAXB. */ @SuppressWarnings("unused") private OptionTradeEventImpl() { option = new OptionBean(); } /**
/** * Create a new OptionAskEventImpl instance. * * <p>This constructor is intended to be used by JAXB. */ @SuppressWarnings("unused") private OptionAskEventImpl() { option = new OptionBean(); } /**
/** * Create a new OptionBidEventImpl instance. * * <p>This constructor is intended to be used by JAXB. */ @SuppressWarnings("unused") private OptionBidEventImpl() { option = new OptionBean(); } /**
/** * Create a new OptionMarketstatEventImpl instance. * * <p>This constructor is intended to be used by JAXB. */ @SuppressWarnings("unused") private OptionMarketstatEventImpl() { option = new OptionBean(); volumeChange = BigDecimal.ZERO; interestChange = BigDecimal.ZERO; } /**
/** * Creates a shallow copy of the given <code>OptionBean</code>. * * @param inBean an <code>OptionBean</code> value * @return an <code>OptionBean</code> value */ public static OptionBean copy(OptionBean inBean) { OptionBean newBean = new OptionBean(); copyAttributes(inBean, newBean); return newBean; } /**
/** * 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; } /**