Package sources.client
Class PrettyPrinter
java.lang.Object
sources.client.PrettyPrinter
The PrettyPrinter class contains methods for printing movie data in a user-friendly way.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidprintMovieHashMap(HashMap<Integer, Movie> hashMap) Prints the movie data stored in a HashMap in a user-friendly way.static voidprintMovieList(List<Movie> movieList) Prints the movie data stored in a List in a user-friendly way.static voidprintMovieListOscars(List<Movie> movieList) Prints the movie data stored in a List in a user-friendly way, including the number of Oscars each movie has won.
-
Field Details
-
dateTimeFormat
- See Also:
-
birthdayTimeFormat
- See Also:
-
keyFormat
- See Also:
-
movieIDFormat
- See Also:
-
movieNameFormat
- See Also:
-
XFormat
- See Also:
-
YFormat
- See Also:
-
dateFormat
- See Also:
-
oscarsFormat
- See Also:
-
genreFormat
- See Also:
-
ratingFormat
- See Also:
-
directorNameFormat
- See Also:
-
birthdayFormat
- See Also:
-
weightFormat
- See Also:
-
passportIDFormat
- See Also:
-
-
Constructor Details
-
PrettyPrinter
public PrettyPrinter()
-
-
Method Details
-
printMovieHashMap
Prints the movie data stored in a HashMap in a user-friendly way.- Parameters:
hashMap- the HashMap containing the movie data
-
printMovieList
Prints the movie data stored in a List in a user-friendly way.- Parameters:
movieList- the List containing the movie data
-
printMovieListOscars
Prints the movie data stored in a List in a user-friendly way, including the number of Oscars each movie has won.- Parameters:
movieList- the List containing the movie data
-