Exemple #1
0
 @Override
 public boolean contains(final Tickable T, final int tickID) {
   if (tickID >= 0) return tickers.contains(new StdTickClient(T, 0, tickID));
   return tickers
           .subSet(
               new StdTickClient(T, 0, -1), true, new StdTickClient(T, 0, Integer.MAX_VALUE), true)
           .size()
       > 0;
 }
Exemple #2
0
 @Override
 public void addTicker(TickClient C) {
   if (!tickers.contains(C)) tickers.add(C);
 }