|
| 1 | +public class Constants { |
| 2 | + public static final boolean BooleanTrue = true; |
| 3 | + public static final boolean BooleanFalse = false; |
| 4 | + public static final boolean InvertedBoolean = !true; |
| 5 | + |
| 6 | + public static final byte Byte = 23; |
| 7 | + public static final byte NegativeByte = -42; |
| 8 | + public static final byte LiteralCharAsByte = 'a'; |
| 9 | + |
| 10 | + public static final char Char = 33; |
| 11 | + public static final char LiteralChar = 'b'; |
| 12 | + |
| 13 | + public static final short Short = 0x1234; |
| 14 | + public static final short NegativeShort= -0x5678; |
| 15 | + public static final short LiteralCharAsShort = 'c'; |
| 16 | + |
| 17 | + public static final int Int = 0xabcdef; |
| 18 | + public static final int NegativeInt = -12345678; |
| 19 | + public static final int LiteralCharAsInt = 'd'; |
| 20 | + |
| 21 | + public static final long Long = 0x1234567890abcdefL; |
| 22 | + public static final long NegativeLong = -0xfedcba09876L; |
| 23 | + public static final long LiteralCharAsLong = 'e'; |
| 24 | + public static final long LiteralIntAsLong = 0x12345678; |
| 25 | + |
| 26 | + public static final float Float = 42.232323f; |
| 27 | + public static final float NegativeFloat = -3.1415f; |
| 28 | + |
| 29 | + public static final double Double = 23.4243598374594d; |
| 30 | + public static final double NegativeDouble = -42.2324358934589734859d; |
| 31 | + |
| 32 | + public static final String String = "testConstant"; |
| 33 | + public static final String NegativeString = "!#!$!grml%!%!$#@@@"; |
| 34 | +} |
0 commit comments