package util; import javax.xml.bind.DatatypeConverter; /* * @(#)$Id: $ * * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. * * This software is the proprietary information of Sun Microsystems, Inc. * Use is subject to license terms. * */ /** * * * @author * Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) */ public class MyIntConverter { public static Integer parse( String s ) { if(s.length()==0) return null; return new Integer(DatatypeConverter.parseInt(s)); } public static String print( Integer i ) { if(i==null) return ""; else return i.toString(); } }