у меня есть задание 1.создать, связать 3 метода и добавить наследование. 2. добавить поля всех типов. 3. добавить Методы equals & hashCode. Проверь мой код на соответствие import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

public class RadioStationDemo {
    public static void main(String[] args) {
        Genre genreVideo = new Genre("MACAN - TSM", "Rap", 3, 5, (short) 40);
        Bid bid = new Bid("FRIENDLY THUG 52 NGG - AMMO", "Underground rap", "Street racing", 32, (short) 35);

        RadioStation radioStation = new RadioStation();
        radioStation.addGenre(genreVideo);
        radioStation.addBid(bid);

        System.out.println("Genre Information:");
        System.out.println("Video Name: " + genreVideo.getName());
        System.out.println("Genre: " + genreVideo.getGenre());
        System.out.println("Time: " + genreVideo.getTime() + " min");
        System.out.println("View Count: " + genreVideo.getViewCount());
        System.out.println("Rating: " + genreVideo.getRating());

        System.out.println("Bid Information:");
        System.out.println("Bid Name: " + bid.getBidName());
        System.out.println("Bid Video Name: " + bid.getName());
        System.out.println("Bid Genre: " + bid.getGenre());
        System.out.println("Bid View Count: " + bid.getViewCount());
        System.out.println("Bid Rating: " + bid.getRating());

        genreVideo.setTime(2);
        bid.setBidName("Overnight in St. Petersburg");

        System.out.println("Updated Genre Time: " + genreVideo.getTime() + " min");
        System.out.println("Updated Bid Name: " + bid.getBidName());
    }
}import java.util.Objects;

class Video {
    private String name;
    private String genre;
    private long viewCount;
    private short rating;

    public Video(String name, String genre, long viewCount, short rating) {
        this.name = name;
        this.genre = genre;
        this.viewCount = viewCount;
        this.rating = rating;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public long getViewCount() {
        return viewCount;
    }

    public void setViewCount(long viewCount) {
        this.viewCount = viewCount;
    }

    public short getRating() {
        return rating;
    }

    public void setRating(short rating) {
        this.rating = rating;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Video)) return false;
        Video video = (Video) o;
        return viewCount == video.viewCount &&
                rating == video.rating &&
                Objects.equals(name, video.name) &&
                Objects.equals(genre, video.genre);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, genre, viewCount, rating);
    }
}import java.util.ArrayList;
import java.util.List;

class RadioStation {
    private List<Genre> genres;
    private List<Bid> bids;
    private List<Video> videos;

    public RadioStation() {
        this.genres = new ArrayList<>();
        this.bids = new ArrayList<>();
        this.videos = new ArrayList<>();
    }

    public void addGenre(Genre genre) {
        genres.add(genre);
    }

    public void addBid(Bid bid) {
        bids.add(bid);
    }

    public void addVideo(Video video) {
        videos.add(video);
    }

    public List<Genre> getGenres() {
        return genres;
    }

    public List<Bid> getBids() {
        return bids;
    }

    public List<Video> getVideos() {
        return videos;
    }
}
import java.util.Objects;

class Genre {
private String name;
private String genre;
private int time;
private long viewCount;
private short rating;

public Genre(String name, String genre, int time, long viewCount, short rating) {
        this.name = name;
        this.genre = genre;
        this.time = time;
        this.viewCount = viewCount;
        this.rating = rating;
        }

public String getName() {
        return name;
        }

public void setName(String name) {
        this.name = name;
        }

public String getGenre() {
        return genre;
        }

public void setGenre(String genre) {
        this.genre = genre;
        }

public int getTime() {
        return time;
        }

public void setTime(int time) {
        this.time = time;
        }

public long getViewCount() {
        return viewCount;
        }

public void setViewCount(long viewCount) {
        this.viewCount = viewCount;
        }

public short getRating() {
        return rating;
        }

public void setRating(short rating) {
        this.rating = rating;
        }

@Override
public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Genre)) return false;
        Genre genre1 = (Genre) o;
        return time == genre1.time &&
        viewCount == genre1.viewCount &&
        rating == genre1.rating &&
        Objects.equals(name, genre1.name) &&
        Objects.equals(genre, genre1.genre);
        }

@Override
public int hashCode() {
        return Objects.hash(name, genre, time, viewCount, rating);
        }
        }import java.util.Objects;

class Bid {
    private String name;
    private String genre;
    private String bidName;
    private long viewCount;
    private short rating;

    public Bid(String name, String genre, String bidName, long viewCount, short rating) {
        this.name = name;
        this.genre = genre;
        this.bidName = bidName;
        this.viewCount = viewCount;
        this.rating = rating;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public String getBidName() {
        return bidName;
    }

    public void setBidName(String bidName) {
        this.bidName = bidName;
    }

    public long getViewCount() {
        return viewCount;
    }

    public void setViewCount(long viewCount) {
        this.viewCount = viewCount;
    }

    public short getRating() {
        return rating;
    }

    public void setRating(short rating) {
        this.rating = rating;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Bid)) return false;
        Bid bid = (Bid) o;
        return viewCount == bid.viewCount &&
                rating == bid.rating &&
                Objects.equals(name, bid.name) &&
                Objects.equals(genre, bid.genre) &&
                Objects.equals(bidName, bid.bidName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, genre, bidName, viewCount, rating);
    }
}