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