Java中的类型包容器及其成员函数
来源:互联网 发布:js数组去重和排序 编辑:程序博客网 时间:2024/05/17 01:59
- public ClassType
例:Integer i=new Integer(1); - public type typeValue()
例:float x=flt.floatValue(); - public String toString()
例:System.out.print(i.toString()); - public boolean equals(Object obj)
例:Integer j=new Integer(1);
boolean bool=j.equals(i);
- public static boolean getBoolean(String name)
- public static boolean isLowerCase(char ch)
- public static boolean isUpperCase(char ch)
- public static int digit(char ch,int radix)
- public static boolean isDigit(char ch)
- public static char forDigit(int digit,int radix)
- public static char toLowerCase(char ch)
- public static char toUpperCase(char ch)
- public int intValue()
- public long longValue()
- public float floatValue()
- public double doubleValue()
- public static int parseInt(String s,int radix)
- public static int parseInt(String s)
- public static Integer getInteger(String name)
- public static Integer getInteger(String name,int val)
- public static Integer getInteger(String name,Integer val)
- public boolean isInifite()
- public static isInifite(float v)
- public static int floatToIntBits(float value)
- public static float intBitsToFloat(int value)
例:Integer i=new Integer(1);