Class TypeUtils


  • public class TypeUtils
    extends Object
    • Constructor Detail

      • TypeUtils

        public TypeUtils()
    • Method Detail

      • getValueBitSize

        public static int getValueBitSize​(Type type)
        Returns the bit size of a given primitive type. Note that it returns 1 for boolean albeit not being possible on a real machine.
        Parameters:
        type -
        Returns:
        the size