View Javadoc
1   package com.ljs.ootp.extract.html.ootp6.rating;
2   
3   import com.ljs.ootp.extract.html.rating.IntegerScale;
4   
5   /**
6    *
7    * @author lstephen
8    */
9   public final class TwoToEight extends IntegerScale {
10  
11      private static final TwoToEight INSTANCE = new TwoToEight();
12  
13      private TwoToEight() {
14          super();
15      }
16  
17      @Override
18      protected Integer scale(Integer value) {
19          return (value * 2 + (value - 5)) * 5;
20      }
21  
22      public static TwoToEight scale() {
23          return INSTANCE;
24      }
25  
26  }