Class Rating

java.lang.Object
com.amilesend.omdb.model.type.Rating

public class Rating extends Object
The media content rating.
  • Constructor Details

    • Rating

      public Rating(String source, String value)
      Creates a new Rating instance.
      Parameters:
      source - The source for the rating.
      value - The rating value.
  • Method Details

    • getSource

      public String getSource()
      The source for the rating.
    • getValue

      public String getValue()
      The rating value.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object