Пример #1
0
 /**
  * Returns the size of the given event as a <code>String</code>.
  *
  * @param inEvent a <code>QuoteEvent</code> value
  * @return a <code>String</code> value
  */
 private static String getSizeAsString(QuoteEvent inEvent) {
   if (inEvent != null) {
     return inEvent.getSize().toPlainString();
   }
   return NO_QUANTITY;
 }
Пример #2
0
 /**
  * Returns the exchange of the given event or null.
  *
  * @param inEvent a <code>QuoteEvent</code> value
  * @return a <code>String</code> value
  */
 private static String getExchange(QuoteEvent inEvent) {
   if (inEvent != null) {
     return inEvent.getExchange();
   }
   return null;
 }