public final class Performer
extends java.lang.Object
implements java.io.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(java.lang.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.
|
java.lang.String |
toString() |
public static Performer person(Person person)
person
- java.lang.NullPointerException
- if the personId
is nullpublic static Performer roleUnit(RoleUnitName roleUnitName)
roleUnitName
- java.lang.NullPointerException
- if roleUnitName
is nullpublic static Performer anyPerformer()
public PerformerType getType()
public Person getPerson()
public RoleUnitName getRoleName()
public boolean isPersonPermitted(Person person)
person
- public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.