Package deltix.qsrv.hf.blocks
Class InstrumentToObjectMap2<T>
- java.lang.Object
-
- deltix.qsrv.hf.blocks.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.
-
-
Constructor Summary
Constructors Constructor Description InstrumentToObjectMap2()
InstrumentToObjectMap2(int initialCapacity)
-
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()
-
-
-
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()
-
-