public interface Team extends MetadataHolder, Component<Round>
Challenger
s in a
Round
.Modifier and Type | Method and Description |
---|---|
void |
addChallenger(Challenger challenger)
Adds the given
Challenger to this Team and implicitly
removing it from its current Team if applicable. |
ImmutableList<Challenger> |
getChallengers()
|
String |
getId()
Gets the internal identifier of this
Team . |
String |
getName()
Gets the display name of this
Team . |
Round |
getRound()
|
void |
removeChallenger(Challenger challenger)
Removes the given
Challenger from this Team . |
void |
setName(String name)
Sets the display name of this
Team . |
getMetadata
Round getRound() throws OrphanedComponentException
Round
this Team
is owned byOrphanedComponentException
- If this object is orphaned (see
Component
for details)String getId() throws OrphanedComponentException
Team
.Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)String getName() throws OrphanedComponentException
Team
.Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)void setName(String name) throws OrphanedComponentException
Team
.name
- The new display name of this Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)ImmutableList<Challenger> getChallengers() throws OrphanedComponentException
ImmutableList
of all Challenger
s on this
Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)void addChallenger(Challenger challenger) throws IllegalArgumentException, OrphanedComponentException
Challenger
to this Team
and implicitly
removing it from its current Team
if applicable.challenger
- The Challenger
to addIllegalArgumentException
- If the givene Challenger
is
owned by a different Round
than the one parenting this
Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)void removeChallenger(Challenger challenger) throws IllegalArgumentException, OrphanedComponentException
Challenger
from this Team
. This
implicitly removes it from its current Team
if applicable.challenger
- The Challenger
to removeIllegalArgumentException
- If the given Challenger
is not
on this Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)