waba.sys
Class Convert

waba.lang.Object
  |
  +--waba.sys.Convert

public class Convert
extends Object

Convert is used to convert between objects and basic types.


Method Summary
static float toFloatBitwise(int i)
          Converts the given IEEE 754 bit representation of a float to a float.
static int toInt(String s)
          Converts the given String to an int.
static int toIntBitwise(float f)
          Converts the given float to its bit representation in IEEE 754 format.
static String toString(boolean b)
          Converts the given boolean to a String.
static String toString(char c)
          Converts the given char to a String.
static String toString(float f)
          Converts the given float to a String.
static String toString(int i)
          Converts the given int to a String.
 
Methods inherited from class waba.lang.Object
toString
 

Method Detail

toInt

public static int toInt(String s)
Converts the given String to an int. If the string passed is not a valid integer, 0 is returned.

toString

public static String toString(boolean b)
Converts the given boolean to a String.

toString

public static String toString(char c)
Converts the given char to a String.

toIntBitwise

public static int toIntBitwise(float f)
Converts the given float to its bit representation in IEEE 754 format.

toFloatBitwise

public static float toFloatBitwise(int i)
Converts the given IEEE 754 bit representation of a float to a float.

toString

public static String toString(float f)
Converts the given float to a String.

toString

public static String toString(int i)
Converts the given int to a String.