Clover coverage report - brownies library - 1.0-beta-1 Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00 FRAMES NO FRAMES |
file stats: | LOC: | 43 |  | Methods: | 0
| NCLOC: | 20 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
JpEra.java | - | 100% | - | 100% |

1 |  |
     /*
2 |  |
      * Joey and its relative products are published under the terms
3 |  |
      * of the Apache Software License.
4 |  |
      */
5 |  |
     package org.asyrinx.brownie.core.util.jp;
6 |  |
7 |  |
     import java.util.Locale;
8 |  |
9 |  |
     import org.asyrinx.brownie.core.util.Era;
10 |  |
     import org.asyrinx.brownie.core.util.EraGroup;
11 |  |
12 |  |
     /**
13 |  |
      * 明治は改元日が元号の最初の日付ではない。 また、明治6年から太陰暦から太陽暦に変わっているので、話がややこしい。 M 1868/01/01 T
14 |  |
      * 1912/07/30 S 1926/12/25 H 1989/01/08
15 |  |
      *
16 |  |
      * @author akima
17 |  |
      */
18 |  |
     public final class JpEra {
19 |  |
20 |  |
         // Javaの月は、0オリジンっすよ！！ Don't forget !!
21 |  |
22 |  |
         static public final Era MEIJI = new Era(Locale.JAPAN, "明治", "明", "M", 1868,
23 |  |
                 0, 1, 1912, 6, 29);
24 |  |
25 |  |
         static public final Era TAISHO = new Era(Locale.JAPAN, "大正", "大", "T",
26 |  |
                 1912, 6, 30, 1926, 11, 24);
27 |  |
28 |  |
         static public final Era SHOWA = new Era(Locale.JAPAN, "昭和", "昭", "S", 1926,
29 |  |
                 11, 25, 1989, 0, 7);
30 |  |
31 |  |
         static public final Era HEISEI = new Era(Locale.JAPAN, "平成", "平", "H",
32 |  |
                 1989, 0, 8, 0, 0, 0);
33 |  |
34 |  |
         static public final EraGroup ERA_GROUP = new EraGroup();
35 |  |
36 |  |
         static {
37 | 1 |
             ERA_GROUP.add(MEIJI);
38 | 1 |
             ERA_GROUP.add(TAISHO);
39 | 1 |
             ERA_GROUP.add(SHOWA);
40 | 1 |
             ERA_GROUP.add(HEISEI);
41 |  |
         }
42 |  |
43 |  |
     }