@Entity public class Movie extends Object implements Comparable<Movie>
Modifier and Type | Field and Description |
---|---|
private Set<MovieRole> |
cast |
private Director |
director |
private Set<String> |
genres |
private String |
id |
private int |
minutes |
private MovieRating |
rating |
private Date |
releaseDate |
private String |
title |
Modifier | Constructor and Description |
---|---|
protected |
Movie() |
|
Movie(String id) |
Modifier and Type | Method and Description |
---|---|
Movie |
addGenres(String... genre) |
Movie |
addRole(MovieRole... role) |
int |
compareTo(Movie rhs) |
boolean |
equals(Object obj) |
Set<MovieRole> |
getCast() |
Director |
getDirector() |
Set<String> |
getGenres() |
String |
getId() |
int |
getMinutes() |
MovieRating |
getRating() |
Date |
getReleaseDate() |
String |
getTitle() |
int |
hashCode() |
protected void |
setCast(Set<MovieRole> cast) |
Movie |
setDirector(Director director) |
Movie |
setGenres(Set<String> genres) |
Movie |
setMinutes(int minutes) |
Movie |
setRating(MovieRating rating) |
Movie |
setReleaseDate(Date releaseDate) |
Movie |
setTitle(String title) |
String |
toString() |
private String id
private String title
private Date releaseDate
private MovieRating rating
private int minutes
private Director director
protected Movie()
public Movie(String id)
public String getId()
public String getTitle()
public Date getReleaseDate()
public MovieRating getRating()
public Movie setRating(MovieRating rating)
public int getMinutes()
public Movie setMinutes(int minutes)
public Director getDirector()
public int compareTo(Movie rhs)
compareTo
in interface Comparable<Movie>
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.