Package com.sportradar.utils
Class Urn
java.lang.Object
com.sportradar.utils.Urn
Represents a Uniform Resource Name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether the specifiedObjectis equal to this instancegetGroup()Returns theResourceTypeGroupenum member describing the group of the current instancelonggetId()Returns the numerical part of the identifier associated with the current instanceReturns the prefix of the current instancegetType()Returns the type of the resource associated with the current instanceinthashCode()Returns a hash code for this instancebooleanstatic booleanisSimpleTeam(String urn) static UrntoString()Returns aStringthat represents this instance
-
Constructor Details
-
Urn
Initializes a new instance of theUrnclass- Parameters:
prefix- - prefix of the URNtype- - type of the resource associated with the URNid- - numerical identifier of the resource associated with the URN
-
-
Method Details
-
parse
-
getPrefix
Returns the prefix of the current instance- Returns:
- the prefix of the current instance
-
getType
Returns the type of the resource associated with the current instance- Returns:
- the type of the resource associated with the current instance
-
getId
public long getId()Returns the numerical part of the identifier associated with the current instance- Returns:
- the numerical part of the identifier associated with the current instance
-
getGroup
Returns theResourceTypeGroupenum member describing the group of the current instance- Returns:
- the
ResourceTypeGroupenum member describing the group of the current instance
-
equals
Determines whether the specifiedObjectis equal to this instance -
toString
Returns aStringthat represents this instance -
hashCode
public int hashCode()Returns a hash code for this instance -
isSimpleTeam
public boolean isSimpleTeam() -
isSimpleTeam
-