@Entity(name="TeamTypeRangedPlayerAvailability")
public final class PersistentTeamPlayerRangedAvailability
extends java.lang.Object
implements com.bernardomg.tabletop.dreadball.model.availability.player.TeamPlayerRangedAvailability, java.io.Serializable
TeamType,
where there is a range of how many times it can be acquired.
This is a persistent JPA-Based implementation.
| Constructor and Description |
|---|
PersistentTeamPlayerRangedAvailability()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getId()
Returns the ID assigned to this entity.
|
java.lang.Integer |
getInitialNumber() |
java.lang.Integer |
getMaxNumber() |
com.bernardomg.tabletop.dreadball.model.player.TeamPlayer |
getTeamPlayer() |
com.bernardomg.tabletop.dreadball.model.faction.TeamType |
getTeamType() |
int |
hashCode() |
void |
setId(java.lang.Integer identifier)
Sets the ID assigned to this entity.
|
void |
setInitialNumber(java.lang.Integer initialCount)
Sets the initial number of players for the team type.
|
void |
setMaxNumber(java.lang.Integer maxCount)
Sets the max number of players for the team type.
|
void |
setTeamPlayer(PersistentTeamPlayer playerType)
Sets the player for the availability.
|
void |
setTeamType(PersistentTeamType team)
Sets the team type for the availability.
|
java.lang.String |
toString() |
public PersistentTeamPlayerRangedAvailability()
public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final java.lang.Integer getId()
public final java.lang.Integer getInitialNumber()
getInitialNumber in interface com.bernardomg.tabletop.dreadball.model.availability.player.TeamPlayerRangedAvailabilitypublic final java.lang.Integer getMaxNumber()
getMaxNumber in interface com.bernardomg.tabletop.dreadball.model.availability.player.TeamPlayerRangedAvailabilitypublic final com.bernardomg.tabletop.dreadball.model.player.TeamPlayer getTeamPlayer()
getTeamPlayer in interface com.bernardomg.tabletop.dreadball.model.availability.player.TeamPlayerAvailabilitypublic final com.bernardomg.tabletop.dreadball.model.faction.TeamType getTeamType()
getTeamType in interface com.bernardomg.tabletop.dreadball.model.availability.player.TeamPlayerAvailabilitypublic final int hashCode()
hashCode in class java.lang.Objectpublic final void setId(java.lang.Integer identifier)
identifier - the ID for the entitypublic final void setInitialNumber(java.lang.Integer initialCount)
initialCount - the initial number of players for the team typepublic final void setMaxNumber(java.lang.Integer maxCount)
maxCount - the max number of players for the team typepublic final void setTeamPlayer(PersistentTeamPlayer playerType)
playerType - the player for the availabilitypublic final void setTeamType(PersistentTeamType team)
team - the team type for the availabilitypublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015–2018 Bernardo MartÃnez Garrido. All rights reserved.