Пример #1
0
 /** The number of screens in the movie theater. */
 @JsonIgnore
 public Collection<String> getScreenCountStrings() {
   final Object current = myData.get("screenCount");
   if (current == null) return Collections.emptyList();
   if (current instanceof Collection) {
     return (Collection<String>) current;
   }
   return Arrays.asList((String) current);
 }
Пример #2
0
 /** The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed. */
 @JsonIgnore
 public Collection<Float> getWorstRatingFloats() {
   final Object current = myData.get("worstRating");
   if (current == null) return Collections.emptyList();
   if (current instanceof Collection) {
     return (Collection<Float>) current;
   }
   return Arrays.asList((Float) current);
 }
Пример #3
0
 /** The highest value allowed in this rating system. If bestRating is omitted, 5 is assumed. */
 @JsonIgnore
 public Collection<Double> getBestRatingDoubles() {
   final Object current = myData.get("bestRating");
   if (current == null) return Collections.emptyList();
   if (current instanceof Collection) {
     return (Collection<Double>) current;
   }
   return Arrays.asList((Double) current);
 }
Пример #4
0
 /** A sub property of participant. The participant/person/organization that bought the object. */
 @JsonIgnore
 public Collection<Person> getBuyers() {
   final Object current = myData.get("buyer");
   if (current == null) return Collections.emptyList();
   if (current instanceof Collection) {
     return (Collection<Person>) current;
   }
   return Arrays.asList((Person) current);
 }