Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 1 | // Copyright 2011 Google Inc. All Rights Reserved. |
| 2 | |
| 3 | class Statics { |
| 4 | static boolean s0 = true; |
| 5 | static byte s1 = 5; |
| 6 | static char s2 = 'a'; |
| 7 | static short s3 = (short) 65000; |
| 8 | static int s4 = 2000000000; |
| 9 | static long s5 = 0x123456789abcdefL; |
| 10 | static float s6 = 0.5f; |
| 11 | static double s7 = 16777217; |
| 12 | static Object s8 = "android"; |
| 13 | static Object[] s9 = { "a", "b" }; |
Brian Carlstrom | 193a44d | 2011-09-04 12:01:42 -0700 | [diff] [blame^] | 14 | |
| 15 | static boolean getS0() { |
| 16 | return s0; |
| 17 | } |
| 18 | static byte getS1() { |
| 19 | return s1; |
| 20 | } |
| 21 | static char getS2() { |
| 22 | return s2; |
| 23 | } |
| 24 | static short getS3() { |
| 25 | return s3; |
| 26 | } |
| 27 | static int getS4() { |
| 28 | return s4; |
| 29 | } |
| 30 | static long getS5() { |
| 31 | return s5; |
| 32 | } |
| 33 | static float getS6() { |
| 34 | return s6; |
| 35 | } |
| 36 | static double getS7() { |
| 37 | return s7; |
| 38 | } |
| 39 | static Object getS8() { |
| 40 | return s8; |
| 41 | } |
| 42 | static Object[] getS9() { |
| 43 | return s9; |
| 44 | } |
Brian Carlstrom | 9f30b38 | 2011-08-28 22:41:38 -0700 | [diff] [blame] | 45 | } |