(byte b)
| 47 | |
| 48 | |
| 49 | public static int toInt(byte b) { |
| 50 | if(b < 0) |
| 51 | return b & 0xff; |
| 52 | return b; |
| 53 | } |
| 54 | public static byte fromInt(int i) { |
| 55 | if(i > 256) { |
| 56 | throw new IllegalArgumentException("Number " + i + " too big"); |
no outgoing calls
no test coverage detected