Class EventSource

    • Constructor Summary

      Constructors 
      Constructor Description
      EventSource​(java.lang.String token)
      Constructs a new EventSource with the specified token.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Compares this EventSource with another object for equality.
      static EventSource fromToken​(java.lang.String token)
      Creates an EventSource from the specified token.
      java.lang.String getToken()
      Retrieves the token for the event source.
      int hashCode()
      Returns the hash code for this EventSource.
      • Methods inherited from class java.lang.Object

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

      • EventSource

        public EventSource​(java.lang.String token)
        Constructs a new EventSource with the specified token.
        Parameters:
        token - A String representing the event source.
    • Method Detail

      • getToken

        public java.lang.String getToken()
        Retrieves the token for the event source.
        Returns:
        A String representing the token.
      • fromToken

        public static EventSource fromToken​(java.lang.String token)
        Creates an EventSource from the specified token.
        Parameters:
        token - A String representing the token for the event source.
        Returns:
        A new EventSource instance.
      • equals

        public boolean equals​(java.lang.Object o)
        Compares this EventSource with another object for equality.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - The object to compare with.
        Returns:
        true if the specified object is equal to this EventSource; false otherwise.
      • hashCode

        public int hashCode()
        Returns the hash code for this EventSource.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        An int representing the hash code of this object.