BrightSide Workbench Full Report + Source Code
org.turro.math.StringNumber Class Reference

Static Public Member Functions

static Integer toInteger (String value)
 
static Long toLong (String value)
 
static Double toDouble (String value)
 
static Boolean toBoolean (String value)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 25 of file StringNumber.java.

Member Function Documentation

◆ toBoolean()

static Boolean org.turro.math.StringNumber.toBoolean ( String  value)
static

Definition at line 51 of file StringNumber.java.

51  {
52  return Boolean.parseBoolean(value);
53  }
Here is the caller graph for this function:

◆ toDouble()

static Double org.turro.math.StringNumber.toDouble ( String  value)
static

Definition at line 43 of file StringNumber.java.

43  {
44  try {
45  return Double.parseDouble(value);
46  } catch(NumberFormatException ex) {
47  return null;
48  }
49  }

◆ toInteger()

static Integer org.turro.math.StringNumber.toInteger ( String  value)
static

Definition at line 27 of file StringNumber.java.

27  {
28  try {
29  return Integer.parseInt(value);
30  } catch(NumberFormatException ex) {
31  return null;
32  }
33  }
Here is the caller graph for this function:

◆ toLong()

static Long org.turro.math.StringNumber.toLong ( String  value)
static

Definition at line 35 of file StringNumber.java.

35  {
36  try {
37  return Long.parseLong(value);
38  } catch(NumberFormatException ex) {
39  return null;
40  }
41  }

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