Class StreamVisitorExample.Instrument

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    StreamVisitorExample

    public static class StreamVisitorExample.Instrument
    extends java.lang.Object
    implements java.io.Serializable
    Financial instrument.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Instrument​(java.lang.String symbol)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void update​(double price)
      Updates this instrument based on the latest market tick price.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Instrument

        public Instrument​(java.lang.String symbol)
        Parameters:
        symbol - Symbol.
    • Method Detail

      • update

        public void update​(double price)
        Updates this instrument based on the latest market tick price.
        Parameters:
        price - Latest price.