Class InstrumentToObjectMap<T>

  • All Implemented Interfaces:
    java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>

    public class InstrumentToObjectMap<T>
    extends java.lang.Object
    implements java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
    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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(deltix.qsrv.hf.pub.InstrumentIdentity iid)  
      boolean containsKey​(deltix.qsrv.hf.pub.InstrumentType type, java.lang.CharSequence symbol)  
      boolean containsKey​(java.lang.Object key)  
      boolean containsValue​(java.lang.Object value)  
      java.util.Set<java.util.Map.Entry<deltix.qsrv.hf.pub.InstrumentIdentity,​T>> entrySet()  
      T get​(deltix.qsrv.hf.pub.InstrumentIdentity iid)  
      T get​(deltix.qsrv.hf.pub.InstrumentType type, java.lang.CharSequence symbol)  
      T get​(java.lang.Object key)  
      boolean isEmpty()  
      java.util.Set<deltix.qsrv.hf.pub.InstrumentIdentity> keySet()  
      T put​(deltix.qsrv.hf.pub.InstrumentIdentity key, T value)  
      T put​(deltix.qsrv.hf.pub.InstrumentType type, java.lang.CharSequence symbol, T value)  
      void putAll​(java.util.Map<? extends deltix.qsrv.hf.pub.InstrumentIdentity,​? extends T> m)  
      T remove​(deltix.qsrv.hf.pub.InstrumentIdentity iid)  
      T remove​(deltix.qsrv.hf.pub.InstrumentType type, java.lang.CharSequence symbol)  
      T remove​(java.lang.Object key)  
      int size()  
      java.util.Collection<T> values()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • InstrumentToObjectMap

        public InstrumentToObjectMap​(int initialCapacity)
      • InstrumentToObjectMap

        public InstrumentToObjectMap()
    • Method Detail

      • put

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

        public T put​(deltix.qsrv.hf.pub.InstrumentIdentity key,
                     T value)
        Specified by:
        put in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • get

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

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

        public T get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • remove

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

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

        public T remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • containsKey

        public boolean containsKey​(deltix.qsrv.hf.pub.InstrumentIdentity iid)
      • containsKey

        public boolean containsKey​(deltix.qsrv.hf.pub.InstrumentType type,
                                   java.lang.CharSequence symbol)
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • entrySet

        public java.util.Set<java.util.Map.Entry<deltix.qsrv.hf.pub.InstrumentIdentity,​T>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • keySet

        public java.util.Set<deltix.qsrv.hf.pub.InstrumentIdentity> keySet()
        Specified by:
        keySet in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • putAll

        public void putAll​(java.util.Map<? extends deltix.qsrv.hf.pub.InstrumentIdentity,​? extends T> m)
        Specified by:
        putAll in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>
      • values

        public java.util.Collection<T> values()
        Specified by:
        values in interface java.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,​T>