Class WebRating

  • java.lang.Object
    • com.here.sdk.search.WebRating

  • public final class WebRating
    extends java.lang.Object

    Contains information about rating and a url to review.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      double average
      Avarage value of all ratings.
      int count
      Total number of ratings.
      WebSource source
      Detailed information about rating.
    • Constructor Summary

      Constructors 
      Constructor Description
      WebRating()
      Creates a new instance.
      WebRating​(int count, double average, WebSource source)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • count

        public int count

        Total number of ratings.

      • average

        public double average

        Avarage value of all ratings.

      • source

        @NonNull
        public WebSource source

        Detailed information about rating.

    • Constructor Detail

      • WebRating

        public WebRating​(int count,
                         double average,
                         @NonNull
                         WebSource source)

        Creates a new instance.

        Parameters:
        count -

        Total number of ratings.

        average -

        Avarage value of all ratings.

        source -

        Detailed information about rating.

      • WebRating

        public WebRating()

        Creates a new instance.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object