public class IdNameTuple extends Object implements Serializable
Constructor and Description |
---|
IdNameTuple(long id,
String value)
Initialize a new
IdNameTuple instance. |
IdNameTuple(long id,
String value,
Long uniqueId)
Initialize a new
IdNameTuple instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Long |
getId()
Entity id
|
LocalizedString |
getName()
Gets name
|
Long |
getUniqueId()
Specified the team unique id.
|
int |
hashCode() |
String |
toString() |
public IdNameTuple(long id, String value)
IdNameTuple
instance.id
- Entity idvalue
- Entity valuepublic IdNameTuple(long id, String value, Long uniqueId)
IdNameTuple
instance.id
- Entity idvalue
- Entity valueuniqueId
- Entity unique id (i.e. team unique id)public Long getId()
public LocalizedString getName()
public Long getUniqueId()
The teams have two id's; one named id and another named uniqueid. The id is for that team in that tournament, and the uniqueid is for that team in all tournaments. Not all teams have the uniqueid attribute, so it should only be used to identify that two teams in different tournaments are the same.
Copyright © 2013–2023. All rights reserved.