public class TeamName
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
teamDisplayName |
protected java.lang.String |
teamLegalName |
Constructor and Description |
---|
TeamName(java.lang.String teamDisplayName,
java.lang.String teamLegalName)
Team name details
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getTeamDisplayName()
Team's display name.
|
java.lang.String |
getTeamLegalName()
Team's legal name.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String teamDisplayName
protected final java.lang.String teamLegalName
public TeamName(java.lang.String teamDisplayName, java.lang.String teamLegalName)
teamDisplayName
- Team's display name. Must not be null
.teamLegalName
- Team's legal name. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getTeamDisplayName()
null
.public java.lang.String getTeamLegalName()
null
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.