- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRoleData.java
More file actions
Latest commit
33 lines (30 loc) · 724 Bytes
/
Copy pathRoleData.java
File metadata and controls
33 lines (30 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
4 * Holds information about what role an actor has in a movie
5 */
publicclassRoleData
{
privatefinalStringtitle;
privatefinalStringrole;
RoleData( finalStringtitle, finalStringrole )
{
this.title = title;
this.role = role;
}
/**
* Returns the title of the movie, never <code>null</code>.
* @return title of the movie
*/
publicStringgetTitle()
{
returnthis.title;
}
/**
* Returns the role the actor had in the movie, may be <code>null</code>
* if no information is available.
* @return actor role or null if information not avilable
*/
publicStringgetRole()
{
returnthis.role;
}
}