view base/src/java/lang/Number.d @ 113:fb3aa8075988

D2 support for the linux port.
author Jacob Carlborg <doob@me.com>
date Wed, 06 Apr 2011 21:57:23 +0200
parents 48d4ee626868
children
line wrap: on
line source

module java.lang.Number;

import java.lang.util;

class Number {
    this(){
    }
    byte byteValue(){
        return cast(byte)intValue();
    }
    abstract  double doubleValue();
    abstract  float floatValue();
    abstract  int intValue();
    abstract  long longValue();
    short shortValue(){
        return cast(short)intValue();
    }
}