Package sources.models.helpers
Class MovieArgumentChecker
java.lang.Object
sources.models.helpers.ArgumentChecker
sources.models.helpers.MovieArgumentChecker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckArguments(Integer id, String name, Coordinates coordinates, long oscarsCount, MovieGenre genre, MpaaRating mpaaRating, Person director) static voidcheckArguments(String name, Coordinates coordinates, long oscarsCount, MovieGenre genre, MpaaRating mpaaRating, Person director) static voidcheckCoordinates(Coordinates coordinates) static voidcheckDirector(Person director) static voidcheckGenre(MovieGenre genre) static voidstatic voidstatic voidcheckMpaaRating(MpaaRating mpaaRating) static voidstatic voidcheckOscarsCount(long oscarsCount) Methods inherited from class sources.models.helpers.ArgumentChecker
checkArgument, checkNull
-
Constructor Details
-
MovieArgumentChecker
public MovieArgumentChecker()
-
-
Method Details
-
checkArguments
public static void checkArguments(String name, Coordinates coordinates, long oscarsCount, MovieGenre genre, MpaaRating mpaaRating, Person director) throws WrongArgumentException - Throws:
WrongArgumentException
-
checkArguments
public static void checkArguments(Integer id, String name, Coordinates coordinates, long oscarsCount, MovieGenre genre, MpaaRating mpaaRating, Person director) throws WrongArgumentException - Throws:
WrongArgumentException
-
checkID
- Throws:
WrongArgumentException
-
checkKey
- Throws:
WrongArgumentException
-
checkName
- Throws:
WrongArgumentException
-
checkCoordinates
- Throws:
WrongArgumentException
-
checkOscarsCount
- Throws:
WrongArgumentException
-
checkGenre
- Throws:
WrongArgumentException
-
checkMpaaRating
- Throws:
WrongArgumentException
-
checkDirector
- Throws:
WrongArgumentException
-