@Override
    public boolean equals(Object object) {
        if (object == null) {
            return false;
        }

        if (getClass() != object.getClass()) {
            return false;
        }

        Movie movie = (Movie) object;

        if (this.title == null || !this.title.equals(movie.getTitle())) {
            return false;
        }

        if (this.genre == null || !this.genre.equals(movie.getGenre())) {
            return false;
        }

        if (this.year != movie.getYear()) {
            return false;
        }

        if (this.ratings != movie.getRatings()) {
            return false;
        }

        return true;
    }