Class EventIdentifier

java.lang.Object
com.sportradar.livedata.sdk.feed.common.entities.EventIdentifier
All Implemented Interfaces:
Serializable

public class EventIdentifier extends Object implements Serializable
Uniquely identifies an event.
See Also:
  • Field Details

    • eventId

      protected final long eventId
  • Constructor Details

    • EventIdentifier

      protected EventIdentifier(long eventId)
  • Method Details

    • equals

      public boolean equals(EventIdentifier other)
      Determines whether passed EventIdentifier is equal to the current one
      Parameters:
      other - The EventIdentifier to be compared to the current one
      Returns:
      True if passed EventIdentifier is equal to the current one, otherwise false.
    • getEventId

      public long getEventId()
      Gets event id
      Returns:
      event id
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • id

      public static EventIdentifier id(long id)
      Build an EventIdentifier from id
      Parameters:
      id - - id of an event
      Returns:
      an EventIdentifier