Back to index

wims  3.65+svn20090927
Static Public Member Functions
WIMSchem.Utils Class Reference

List of all members.

Static Public Member Functions

static void write (String S)
static void writeln (String S)
static void errmsg (String Title, String Text)
static int safeInt (String S, int Def)
static int safeInt (String S)
static double safeDouble (String S, double Def)
static double safeDouble (String S)

Detailed Description

Definition at line 20 of file Utils.java.


Member Function Documentation

static void WIMSchem.Utils.errmsg ( String  Title,
String  Text 
) [inline, static]

Definition at line 26 of file Utils.java.

    {
       JOptionPane.showMessageDialog(null,Text,Title,JOptionPane.ERROR_MESSAGE);
    }

Here is the caller graph for this function:

static double WIMSchem.Utils.safeDouble ( String  S,
double  Def 
) [inline, static]

Definition at line 39 of file Utils.java.

    {
       if (S==null) return Def;
       try {return new Double(S).doubleValue();} 
       catch (NumberFormatException e) {return Def;}
    }

Here is the caller graph for this function:

static double WIMSchem.Utils.safeDouble ( String  S) [inline, static]

Definition at line 45 of file Utils.java.

{return safeDouble(S,0);}

Here is the call graph for this function:

Here is the caller graph for this function:

static int WIMSchem.Utils.safeInt ( String  S,
int  Def 
) [inline, static]

Definition at line 32 of file Utils.java.

    {
       if (S==null) return Def;
       try {return new Integer(S).intValue();} 
       catch (NumberFormatException e) {return Def;}
    }

Here is the caller graph for this function:

static int WIMSchem.Utils.safeInt ( String  S) [inline, static]

Definition at line 38 of file Utils.java.

{return safeInt(S,0);}

Here is the call graph for this function:

Here is the caller graph for this function:

static void WIMSchem.Utils.write ( String  S) [inline, static]

Definition at line 23 of file Utils.java.

{System.out.print(S);}
static void WIMSchem.Utils.writeln ( String  S) [inline, static]

Definition at line 24 of file Utils.java.

{System.out.println(S);}

The documentation for this class was generated from the following file: