Class AllocationViewEvent

  • All Implemented Interfaces:
    SubjectInfo

    public class AllocationViewEvent
    extends java.lang.Object
    implements SubjectInfo

    The AllocationViewEvent encapsulates the clients request for the details of an allocation.

    • Constructor Summary

      Constructors 
      Constructor Description
      AllocationViewEvent​(java.lang.String subject, java.lang.String username, java.lang.String tradeId)
      Constructs the object with the subject of the request, the username of the client request for the view event amd the trade that the client wants to view the allocations for.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getSubject()
      Returns the original subject that was parsed to create this SubjectInfo
      java.lang.String getTradeId()
      Returns the trade Id that we want to view allocations for.
      java.lang.String getUsername()
      Returns the username of the client that made the request to view allocations
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • AllocationViewEvent

        public AllocationViewEvent​(java.lang.String subject,
                                   java.lang.String username,
                                   java.lang.String tradeId)
        Constructs the object with the subject of the request, the username of the client request for the view event amd the trade that the client wants to view the allocations for.
        Parameters:
        subject - The subject the request was made on
        username - The user of the client that made the request.
        tradeId - The Id of the Trade that the client wants to view allocations for.
    • Method Detail

      • getSubject

        public java.lang.String getSubject()
        Description copied from interface: SubjectInfo
        Returns the original subject that was parsed to create this SubjectInfo
        Specified by:
        getSubject in interface SubjectInfo
        Returns:
        The original subject.
      • getUsername

        public java.lang.String getUsername()
        Returns the username of the client that made the request to view allocations
        Returns:
        the username of the client who made the request to view allocations
      • getTradeId

        public java.lang.String getTradeId()
        Returns the trade Id that we want to view allocations for.
        Returns:
        the trade Id that we want to view allocations for.
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object