Package com.barchart.feed.api.model.meta

Examples of com.barchart.feed.api.model.meta.Exchange


      if(!(o instanceof Exchange)) {
        return false;
      }

      final Exchange that = (Exchange)o;

      return (desc.equals(that.description()) && id.equals(that.id()));

    }
View Full Code Here


          throw new IllegalArgumentException("Unsupported Metadata Type " + m.metaType());
        case INSTRUMENT:
          instIDs.add((InstrumentID) m);
          break;
        case EXCHANGE:
          final Exchange e = Exchanges.fromID((ExchangeID)m);
          if(e.isNull()) {
            log.warn("Attempted to include invalid exchange ID " + ((ExchangeID)m).id());
          } else {
            metas.add(e);
          }
          break;
        }

      }

      final Map<InstrumentID, Instrument> iMap = metaService.instrument(
          instIDs.toArray(new InstrumentID[0])).toBlockingObservable().single();

      for(final Entry<InstrumentID, Instrument> e : iMap.entrySet()) {
        if(!e.getValue().isNull()) {
          metas.add(e.getValue());
        }
      }

      include(metas.toArray(new Metadata[0]));
    }
View Full Code Here

     
      if(!(o instanceof Exchange)) {
        return false;
      }
     
      Exchange that = (Exchange)o;
     
      return (desc.equals(that.description()) && id.equals(that.id()));
     
    }
View Full Code Here

     
      if(!(o instanceof Exchange)) {
        return false;
      }
     
      Exchange that = (Exchange)o;
     
      return (desc.equals(that.description()) && id.equals(that.id()));
     
    }
View Full Code Here

      if(!(o instanceof Exchange)) {
        return false;
      }

      final Exchange that = (Exchange)o;

      return (desc.equals(that.description()) && id.equals(that.id()));

    }
View Full Code Here

     
      if(!(o instanceof Exchange)) {
        return false;
      }
     
      Exchange that = (Exchange)o;
     
      return (desc.equals(that.description()) && id.equals(that.id()));
     
    }
View Full Code Here

     
      if(!(o instanceof Exchange)) {
        return false;
      }
     
      Exchange that = (Exchange)o;
     
      return (desc.equals(that.description()) && id.equals(that.id()));
     
    }
View Full Code Here

TOP

Related Classes of com.barchart.feed.api.model.meta.Exchange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.