public final class Performer extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
Performer()
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
static Performer |
anyPerformer()
Returns a special performer representing any known performer.
|
boolean |
equals(Object obj) |
Person |
getPerson()
Returns person.
|
RoleUnitName |
getRoleName()
Returns the role unit name.
|
PerformerType |
getType()
Returns the type of the performer.
|
int |
hashCode() |
boolean |
isPersonPermitted(Person person)
Returns true if this performer includes the given person.
|
static Performer |
person(Person person)
Creates a new person performer.
|
static Performer |
roleUnit(RoleUnitName roleUnitName)
Creates a new role-unit performer.
|
String |
toString() |
public static Performer person(Person person)
person
- NullPointerException
- if the personId
is nullpublic static Performer roleUnit(RoleUnitName roleUnitName)
roleUnitName
- NullPointerException
- if roleUnitName
is nullpublic static Performer anyPerformer()
public PerformerType getType()
public Person getPerson()
public RoleUnitName getRoleName()
public boolean isPersonPermitted(Person person)
person
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.