command arguments done
This commit is contained in:
1 parent
083792ae96
commit
9e8556f9d9
5 files changed
+422
-78
No files matched your search
@@ -37,6 +37,13 @@ public class NumericValue extends Value
|
||||
return ((NumericValue) v1);
|
||||
}
|
||||
|
||||
public static <T extends Number> Value of(T value)
|
||||
{
|
||||
if (value == null) return Value.NULL;
|
||||
if (value.doubleValue() == value.longValue()) return new NumericValue(value.longValue());
|
||||
return new NumericValue(value.doubleValue());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getString()
|
||||
|
||||
Reference in new issue
Block a user