Package deltix.qsrv.hf.blocks
Class InstrumentToObjectMap2<T>
- java.lang.Object
-
- deltix.qsrv.hf.blocks.InstrumentToObjectMap2<T>
-
public class InstrumentToObjectMap2<T> extends java.lang.ObjectEfficiently 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 InstrumentToObjectMap2()InstrumentToObjectMap2(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Tget(deltix.qsrv.hf.pub.InstrumentIdentity iid)Tget(deltix.qsrv.hf.pub.InstrumentType type, java.lang.CharSequence symbol)booleanput(deltix.qsrv.hf.pub.InstrumentIdentity key, T value)booleanput(deltix.qsrv.hf.pub.InstrumentType type, java.lang.CharSequence symbol, T value)intsize()java.util.Iterator<T>values()
-
-
-
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()
-
-