You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
597 B
21 lines
597 B
package com.yyt.moviecrawler.model;
|
|
|
|
public class Book {
|
|
private String title;
|
|
private double price;
|
|
private int starRating;
|
|
private String category;
|
|
|
|
public Book(String title, double price, int starRating, String category) {
|
|
this.title = title;
|
|
this.price = price;
|
|
this.starRating = starRating;
|
|
this.category = category;
|
|
}
|
|
|
|
// Getter
|
|
public String getTitle() { return title; }
|
|
public double getPrice() { return price; }
|
|
public int getStarRating() { return starRating; }
|
|
public String getCategory() { return category; }
|
|
}
|