Class ResponderEvent<T extends UserTrade>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.String> fields  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ResponderEvent​(java.lang.String eventName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addField​(java.lang.String fieldName, java.lang.String value)
      Adds the specified field to the list of fields that will be sent with this event.
      void addFields​(java.util.Map<java.lang.String,​java.lang.String> newFields)
      Adds all the specified fields to the list of fields that will be sent with this event.
      boolean equals​(java.lang.Object o)  
      java.lang.String getEventName()
      Returns the event name that this event will send.
      java.lang.String getField​(java.lang.String fieldName)
      Returns the field value with the specified field name.
      java.util.Map<java.lang.String,​java.lang.String> getFields()
      Returns the current fields that have been added to this event.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • fields

        protected final java.util.Map<java.lang.String,​java.lang.String> fields
    • Constructor Detail

      • ResponderEvent

        protected ResponderEvent​(java.lang.String eventName)
    • Method Detail

      • getEventName

        public java.lang.String getEventName()
        Returns the event name that this event will send.
        Returns:
        The name of the event
      • addFields

        public void addFields​(java.util.Map<java.lang.String,​java.lang.String> newFields)
        Adds all the specified fields to the list of fields that will be sent with this event.
        Parameters:
        newFields - the new fields to add. Any existing fields with the same keys will be overridden.
      • addField

        public void addField​(java.lang.String fieldName,
                             java.lang.String value)
        Adds the specified field to the list of fields that will be sent with this event. Any existing field with the same fieldName will be overridden.
        Parameters:
        fieldName - The field name to add.
        value - The value to add for the field name.
      • getField

        public java.lang.String getField​(java.lang.String fieldName)
        Returns the field value with the specified field name.
        Parameters:
        fieldName - The name of the field
        Returns:
        the field value
      • getFields

        public java.util.Map<java.lang.String,​java.lang.String> getFields()
        Returns the current fields that have been added to this event.
        Returns:
        the fields.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object