SMACS

smacs.util
Class Convert

java.lang.Object
  extended bysmacs.util.Convert

public class Convert
extends Object

print/scan helper. allows to print/scan simple types of java - somewhat easier to remember than the usual Integer.parseInt(String) call. A matter of taste and actually rarely used within Smacs.

Author:
Copyright (C) 2004, Guido Draheim. All rights reserved. Part of SMACS project.

Constructor Summary
Convert()
           
 
Method Summary
static int toInt(String value)
           
static int toInt(String value, int defaultresult)
           
static int toInt(String value, int defaultresult, String defaultvalue)
           
static int toInt(String value, String defaultvalue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Convert

public Convert()
Method Detail

toInt

public static int toInt(String value)

toInt

public static int toInt(String value,
                        String defaultvalue)

toInt

public static int toInt(String value,
                        int defaultresult)

toInt

public static int toInt(String value,
                        int defaultresult,
                        String defaultvalue)

SMACS