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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected long
eventId
-
Constructor Summary
Constructors Modifier Constructor Description protected
EventIdentifier(long eventId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(EventIdentifier other)
Determines whether passedEventIdentifier
is equal to the current oneboolean
equals(Object o)
long
getEventId()
Gets event idint
hashCode()
static EventIdentifier
id(long id)
Build an EventIdentifier from idString
toString()
-
-
-
Method Detail
-
equals
public boolean equals(EventIdentifier other)
Determines whether passedEventIdentifier
is equal to the current one- Parameters:
other
- TheEventIdentifier
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
-
id
public static EventIdentifier id(long id)
Build an EventIdentifier from id- Parameters:
id
- - id of an event- Returns:
- an EventIdentifier
-
-