Returns the int value whose byte representation is the given 4 bytes, in big-endian order; equivalent to Ints.fromByteArray(new byte[] {b1, b2, b3, b4)}. @since 7.0
(byte b1, byte b2, byte b3, byte b4)
| 343 | */ |
| 344 | |
| 345 | @GwtIncompatible // doesn't work |
| 346 | public static int fromBytes(byte b1, byte b2, byte b3, byte b4) { |
| 347 | return b1 << 24 | (b2 & 0xFF) << 16 | (b3 & 0xFF) << 8 | (b4 & 0xFF); |
| 348 | } |
| 349 | |
| 350 | private static final class IntConverter extends Converter<String, Integer> implements Serializable { |
| 351 | static final IntConverter INSTANCE = new IntConverter(); |
no outgoing calls
no test coverage detected