3 ms·
Does it add stdint style names for integer types, unsigned integer types etc?
by billfruit 3y ago
Does it add stdint style names for integer types, unsigned integer types etc?
- layer8 3y agoThe size of the integer types are already fixed by the JVM specification (int is always 32 bits, etc.), and there are no unsigned integer types in Java except for char (a 16-bit unsigned integer type). Furthermore, Java does not support alias names for types. Hence it’s unclear what your question is aiming at.
- szatkus 3y agoAFAIK Java 8 added a few methods that helps you handle integers as if they were unsigned, like `toUnsignedString`. I think it's enough for any exotic cases.