public class Team
Class that models a team
Constructor and Description |
---|
Team(java.lang.String name,
java.lang.String flagUrl)
Class that models a team
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
component1()
:
|
java.lang.String |
component2()
:
|
Team |
copy(java.lang.String name,
java.lang.String flagUrl)
Class that models a team
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getFlagUrl()
:
|
java.lang.String |
getName()
:
|
int |
hashCode() |
java.lang.String |
toString() |
public Team(java.lang.String name, java.lang.String flagUrl)
Class that models a team
name
- : The name of the teamflagUrl
- : URL to the team's flagname
- : The name of the teamflagUrl
- : URL to the team's flagpublic java.lang.String getName()
:
The name of the team
public java.lang.String getFlagUrl()
:
URL to the team's flag
public java.lang.String component1()
:
The name of the team
public java.lang.String component2()
:
URL to the team's flag
public Team copy(java.lang.String name, java.lang.String flagUrl)
Class that models a team
name
- : The name of the teamflagUrl
- : URL to the team's flagpublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)