Class Rating.Builder

  • Enclosing class:
    Rating

    public static class Rating.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public Rating build()
        Builds a Rating.
        Returns:
        the new Rating instance
      • oneStarCount

        public Rating.Builder oneStarCount​(long oneStarCount)
        Set the oneStarCount.
        Parameters:
        oneStarCount - the oneStarCount
        Returns:
        the Rating builder
      • twoStarCount

        public Rating.Builder twoStarCount​(long twoStarCount)
        Set the twoStarCount.
        Parameters:
        twoStarCount - the twoStarCount
        Returns:
        the Rating builder
      • threeStarCount

        public Rating.Builder threeStarCount​(long threeStarCount)
        Set the threeStarCount.
        Parameters:
        threeStarCount - the threeStarCount
        Returns:
        the Rating builder
      • fourStarCount

        public Rating.Builder fourStarCount​(long fourStarCount)
        Set the fourStarCount.
        Parameters:
        fourStarCount - the fourStarCount
        Returns:
        the Rating builder