Class EventIdentifier
java.lang.Object
com.sportradar.livedata.sdk.feed.common.entities.EventIdentifier
- All Implemented Interfaces:
Serializable
Uniquely identifies an event.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(EventIdentifier other) Determines whether passedEventIdentifieris equal to the current onebooleanlongGets event idinthashCode()static EventIdentifierid(long id) Build an EventIdentifier from idtoString()
-
Field Details
-
eventId
protected final long eventId
-
-
Constructor Details
-
EventIdentifier
protected EventIdentifier(long eventId)
-
-
Method Details
-
equals
Determines whether passedEventIdentifieris equal to the current one- Parameters:
other- TheEventIdentifierto be compared to the current one- Returns:
- True if passed
EventIdentifieris equal to the current one, otherwise false.
-
getEventId
public long getEventId()Gets event id- Returns:
- event id
-
hashCode
public int hashCode() -
equals
-
toString
-
id
Build an EventIdentifier from id- Parameters:
id- - id of an event- Returns:
- an EventIdentifier
-