Package deltix.qsrv.hf.blocks
Class InstrumentToObjectMap<T>
- java.lang.Object
-
- deltix.qsrv.hf.blocks.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.
-
-
Constructor Summary
Constructors Constructor Description InstrumentToObjectMap()
InstrumentToObjectMap(int initialCapacity)
-
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()
-
-
-
Method Detail
-
put
public T put(deltix.qsrv.hf.pub.InstrumentIdentity key, T value)
- Specified by:
put
in interfacejava.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 interfacejava.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 interfacejava.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,T>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.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 interfacejava.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 interfacejava.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,T>
-
keySet
public java.util.Set<deltix.qsrv.hf.pub.InstrumentIdentity> keySet()
- Specified by:
keySet
in interfacejava.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 interfacejava.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,T>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,T>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<deltix.qsrv.hf.pub.InstrumentIdentity,T>
-
-