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. |
com.google.common.collect.ImmutableList<Challenger> |
getChallengers()
|
java.lang.String |
getId()
Gets the internal identifier of this
Team . |
java.lang.String |
getName()
Gets the display name of this
Team . |
Round |
getRound()
|
void |
removeChallenger(Challenger challenger)
Removes the given
Challenger from this Team . |
void |
setName(java.lang.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)java.lang.String getId() throws OrphanedComponentException
Team
.Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)java.lang.String getName() throws OrphanedComponentException
Team
.Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)void setName(java.lang.String name) throws OrphanedComponentException
Team
.name
- The new display name of this Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)com.google.common.collect.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 java.lang.IllegalArgumentException, OrphanedComponentException
Challenger
to this Team
and implicitly
removing it from its current Team
if applicable.challenger
- The Challenger
to addjava.lang.IllegalArgumentException
- 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 java.lang.IllegalArgumentException, OrphanedComponentException
Challenger
from this Team
. This
implicitly removes it from its current Team
if applicable.challenger
- The Challenger
to removejava.lang.IllegalArgumentException
- If the given Challenger
is not
on this Team
OrphanedComponentException
- If this object is orphaned (see
Component
for details)