Added missing MIX/MAX_VALUE for basic types.

This commit is contained in:
lostdj 2014-11-19 14:27:11 +03:00
parent 0b89357968
commit 0ec230497b
4 changed files with 12 additions and 1 deletions

View File

@ -13,6 +13,9 @@ package java.lang;
public final class Byte extends Number implements Comparable<Byte> {
public static final Class TYPE = avian.Classes.forCanonicalName("B");
public static final byte MIN_VALUE = -128;
public static final byte MAX_VALUE = 127;
private final byte value;
public Byte(byte value) {

View File

@ -17,6 +17,9 @@ public final class Double extends Number {
public static final double POSITIVE_INFINITY = 1.0 / 0.0;
public static final double NaN = 0.0 / 0.0;
public static final double MIN_VALUE = 2.22507385850720138309e-308;
public static final double MAX_VALUE = 1.79769313486231570815e+308;
private final double value;
public Double(String value) {

View File

@ -18,7 +18,10 @@ public final class Float extends Number {
public static final float NEGATIVE_INFINITY = -1.0f / 0.0f;
public static final float POSITIVE_INFINITY = 1.0f / 0.0f;
public static final float NaN = 0.0f / 0.0f;
public static final float MIN_VALUE = 1.17549435082228750797e-38f;
public static final float MAX_VALUE = 3.40282346638528859812e+38f;
private final float value;
public Float(String value) {

View File

@ -12,6 +12,8 @@ package java.lang;
public final class Short extends Number implements Comparable<Short> {
public static final Class TYPE = avian.Classes.forCanonicalName("S");
public static final short MIN_VALUE = -32768;
public static final short MAX_VALUE = 32767;
private final short value;