public static String getBinaryStr(Number number) {
		if (number instanceof Long) {
			return Long.toBinaryString((Long) number);
		} else if (number instanceof Integer) {
			return Integer.toBinaryString((Integer) number);
		} else {
			return Long.toBinaryString(number.longValue());
		}
	}
public static String getBinaryStr ( Number number ) { if ( number instanceof Long ) { return Long . toBinaryString ( ( Long ) number ) ; } else if ( number instanceof Integer ) { return Integer . toBinaryString ( ( Integer ) number ) ; } else { return Long . toBinaryString ( number . longValue ( ) ) ; } }
获得数字对应的二进制字符串

@param number 数字
@return 二进制字符串