Class ObservableSource

  • All Implemented Interfaces:
    Named, java.io.Serializable, java.lang.Comparable<ObservableSource>

    public final class ObservableSource
    extends TypedString<ObservableSource>
    Identifies the source of observable market data, for example Bloomberg or Reuters.

    The meaning of a source is deliberately abstract, identified only by name. While it may refer to a major system, such as Bloomberg, it might refer to any other system or sub-system, such as data from a specific broker.

    See Also:
    Serialized Form
    • Field Detail

      • NONE

        public static final ObservableSource NONE
        A market data source used when the application does not care about the source.
    • Method Detail

      • of

        public static ObservableSource of​(java.lang.String name)
        Obtains an instance from the specified name.

        Source names must only contains the characters A-Z, a-z, 0-9 and -.

        Parameters:
        name - the name of the source
        Returns:
        a source with the specified name