示例#1
0
 public Double getValue() {
   Rating rating = review.getRating();
   return (rating == null ? null : (double) rating.ordinal());
 }
示例#2
0
 public void setValue(Double value) {
   Rating rating = value == null ? null : Rating.values()[value.intValue()];
   review.setRating(rating);
 }
示例#3
0
 public Review addReview(Hotel hotel, ReviewDetails details) {
   System.out.println(details.getTitle());
   return new Review(hotel, 1, details);
 }