forked from prmr/DesignBook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Movies.java
22 lines (18 loc) · 895 Bytes
/
Movies.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package chapter9;
import java.util.Arrays;
import java.util.List;
public class Movies
{
public static final Movie OLDBOY = new Movie("Oldboy", 2003, 121);
public static final Movie METROPOLIS = new Movie("Metropolis", 1927, 153);
public static final Movie WAGES = new Movie("The Wages of Fear", 1953, 131);
public static final Movie INTOUCHABLES = new Movie("The Intouchables", 2011, 112);
public static final Movie AMELIE = new Movie("Amelie", 2001, 121);
public static final Movie GOODBAD = new Movie("The Good, the Bad, and the Ugly", 1966, 178);
public static final Movie DIABOLIQUE = new Movie("Diabolique", 1955, 117);
public static final Movie JOAN = new Movie("The Passion of Joan of Arc", 1928, 114);
public static final List<Movie> movies()
{
return Arrays.asList(OLDBOY, METROPOLIS, WAGES, INTOUCHABLES, AMELIE, GOODBAD, DIABOLIQUE, JOAN);
}
}