Exemplo n.º 1
0
 @Override
 public synchronized boolean isValid(String brokerId) {
   Validate.notNull(brokerId, "brokerID"); // $NON-NLS-1$
   return mBrokerMap.containsKey(new BrokerID(brokerId));
 }
 /**
  * Pretty prints a future expiry.
  *
  * @param option the option
  * @return the string value
  * @throws IllegalArgumentException if option is null
  */
 public static String printExpiry(Future inFuture) {
   Validate.notNull(inFuture, "future"); // $NON-NLS-1$
   return inFuture.getExpiryAsMaturityMonthYear().getValue();
 }