public interface Field
Field
implementation that you can use
to retrieve field values of instruments published on the real-time platform.
(Elektron or TREP). Field
objects can be built using a
Field.Builder
but generally they are retrieved from Elektron objects like
MarketPrice
.
As an example, the code snippet below prints the BID and ASK fields from
and opened MarketPrice
:
MarketPrice theMarketPrice = ...; theMarketPrice.open(); . . . Field bid = theMarketPrice.getField("BID"); Field ask = theMarketPrice.getField("ASK"); println(bid.description().acronym() + " = " + bid.value()); println(ask.description().acronym() + " = " + ask.value());
Modifier and Type | Interface and Description |
---|---|
static class |
Field.Builder
Used to build
Field objects. |
Modifier and Type | Method and Description |
---|---|
Field |
applyPartialUpdate(com.thomsonreuters.ema.access.Data fieldValue)
Applies a partial update on the
Field and return an updated
version of this field. |
com.thomsonreuters.ema.rdm.DictionaryEntry |
description()
Returns the description of the
Field . |
com.thomsonreuters.ema.access.Data |
value()
Returns the value of the
Field . |
com.thomsonreuters.ema.rdm.DictionaryEntry description()
Field
.DictionaryEntry
class
in the EMA reference guide for more details about the returned type.com.thomsonreuters.ema.access.Data value()
Field
.DictionaryEntry
class
in the EMA reference guide for more details about the returned type.Field applyPartialUpdate(com.thomsonreuters.ema.access.Data fieldValue)
Field
and return an updated
version of this field.
Field
objects that contain and OmmRmtes value. For other value types, the
method simply returns a new Field
that contains the
fieldValue
given as a parameterfieldValue
- value of the Field
to build. See the
Data
class in the EMA reference guide for more details about
this type.