/** * Obtains an instance used to obtain an observable value of the index. * <p> * The field name containing the data is {@link FieldName#MARKET_VALUE} and the market * data source is {@link ObservableSource#NONE}. * * @param index the index * @return the identifier */ public static IndexQuoteId of(Index index) { return new IndexQuoteId(index, FieldName.MARKET_VALUE, ObservableSource.NONE); }
/** * Obtains an instance used to obtain an observable value of the index, * specifying the source of observable market data. * * @param index the index * @param fieldName the name of the field in the market data record holding the data * @param obsSource the source of observable market data * @return the identifier */ public static IndexQuoteId of(Index index, FieldName fieldName, ObservableSource obsSource) { return new IndexQuoteId(index, fieldName, obsSource); }
/** * Obtains an instance used to obtain an observable value of the index. * <p> * The market data source is {@link ObservableSource#NONE}. * * @param index the index * @param fieldName the name of the field in the market data record holding the data * @return the identifier */ public static IndexQuoteId of(Index index, FieldName fieldName) { return new IndexQuoteId(index, fieldName, ObservableSource.NONE); }
@Override public IndexQuoteId withObservableSource(ObservableSource obsSource) { return new IndexQuoteId(index, fieldName, obsSource); }