Mercurial > projects > dwt2
view java/src/java/lang/Byte.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children | 712ffca654f3 |
line wrap: on
line source
module java.lang.Byte; import java.lang.util; class Byte : ValueWrapperT!(byte) { public static byte parseByte( String s ){ try{ int res = tango.text.convert.Integer.parse( s ); if( res < byte.min || res > byte.max ){ throw new NumberFormatException( "out of range" ); } return res; } catch( IllegalArgumentException e ){ throw new NumberFormatException( e ); } } this( byte value ){ super( value ); } public static String toString( byte i ){ return tango.text.convert.Integer.toString(i); } } alias Byte ValueWrapperByte;