public class Review extends Object
Constructor and Description |
---|
Review(String id,
User user,
Airline airlines,
int rating,
String comment)
Creates an instance of the Review object with the given fields.
|
Modifier and Type | Method and Description |
---|---|
Airline |
getAirlines()
Returns the Airlines of this Review
|
String |
getComment()
Returns the comments of this Review
|
String |
getId()
Returns the id of this Review
|
int |
getRating()
Returns the rating of this Review
|
User |
getUser()
Returns the user of this Review
|
void |
setAirlinesID(Airline airlines)
Sets the airlines for this Review
|
void |
setComment(String comment)
Sets the comments for this Review
|
void |
setId(String id)
Sets the id for this Review
|
void |
setRating(int rating)
Sets the rating for this Review
|
void |
setUser(User user)
Sets the user for this Review
|
String |
toString() |
public Review(String id, User user, Airline airlines, int rating, String comment)
id
- the unique id of this Reviewuser
- the user associated with this Reviewairlines
- the Airline associated with this Reviewrating
- the rating for this Reviewcomment
- the comments for this Reviewpublic String getId()
public void setId(String id)
id
- the unique id of this Reviewpublic User getUser()
public void setUser(User user)
user
- the user associated with this Reviewpublic Airline getAirlines()
public void setAirlinesID(Airline airlines)
airlines
- the Airline associated with this Reviewpublic int getRating()
public void setRating(int rating)
rating
- the rating for this Reviewpublic String getComment()
public void setComment(String comment)
comment
- the comments for this ReviewCopyright © 2021 Eclipse Foundation. All rights reserved.