Class InstrumentToObjectMap2<T>


  • public class InstrumentToObjectMap2<T>
    extends java.lang.Object
    Efficiently maps instrument identity (not necessarily immutable) to arbitrary objects. The methods can be called directly on messages or mutable buffers. As all collections, this class requires external synchronization.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      T get​(deltix.qsrv.hf.pub.InstrumentIdentity iid)  
      T get​(deltix.qsrv.hf.pub.InstrumentType type, java.lang.CharSequence symbol)  
      boolean put​(deltix.qsrv.hf.pub.InstrumentIdentity key, T value)  
      boolean put​(deltix.qsrv.hf.pub.InstrumentType type, java.lang.CharSequence symbol, T value)  
      int size()  
      java.util.Iterator<T> values()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstrumentToObjectMap2

        public InstrumentToObjectMap2​(int initialCapacity)
      • InstrumentToObjectMap2

        public InstrumentToObjectMap2()
    • Method Detail

      • put

        public boolean put​(deltix.qsrv.hf.pub.InstrumentType type,
                           java.lang.CharSequence symbol,
                           T value)
      • put

        public boolean put​(deltix.qsrv.hf.pub.InstrumentIdentity key,
                           T value)
      • get

        public T get​(deltix.qsrv.hf.pub.InstrumentType type,
                     java.lang.CharSequence symbol)
      • get

        public T get​(deltix.qsrv.hf.pub.InstrumentIdentity iid)
      • clear

        public void clear()
      • size

        public int size()
      • values

        public java.util.Iterator<T> values()