Quote (Java Functional Samples)
Date: 2020-08-07

vwap

## Class Quote

- java.lang.Object
- - vwap.Ticker
  - - vwap.Quote

- All Implemented Interfaces:
    java.io.Serializable

      public class Quote
      extends Ticker

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Quote(com.ibm.streams.operator.Tuple tuple)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Quote` | `convertToTrade(com.ibm.streams.operator.Tuple tuple)` Convert a trade SPL tuple to a Quote object.
    `static com.ibm.streamsx.topology.TStream<Quote>` | `getQuotes(com.ibm.streamsx.topology.spl.SPLStream tradeQuotes)` Get the stream of quotes from the SPL stream.
    `java.lang.String` | `toString()`

    - ### Methods inherited from class vwap.Ticker

      `getTicker`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Quote

          public Quote(com.ibm.streams.operator.Tuple tuple)

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### convertToTrade

          public static Quote convertToTrade(com.ibm.streams.operator.Tuple tuple)

      Convert a trade SPL tuple to a Quote object.

    - #### getQuotes

          public static com.ibm.streamsx.topology.TStream<Quote> getQuotes(com.ibm.streamsx.topology.spl.SPLStream tradeQuotes)

      Get the stream of quotes from the SPL stream. The stream is keyed by the ticker symbol.