@@ -303,39 +303,39 @@ public NumberValue asNumberValue() {
303303 }
304304
305305 @ Override
306- public byte toByte () {
306+ public byte castAsByte () {
307307 if (type == Type .BIG_INTEGER ) {
308308 return ((BigInteger ) objectValue ).byteValue ();
309309 }
310310 return (byte ) longValue ;
311311 }
312312
313313 @ Override
314- public short toShort () {
314+ public short castAsShort () {
315315 if (type == Type .BIG_INTEGER ) {
316316 return ((BigInteger ) objectValue ).shortValue ();
317317 }
318318 return (short ) longValue ;
319319 }
320320
321321 @ Override
322- public int toInt () {
322+ public int castAsInt () {
323323 if (type == Type .BIG_INTEGER ) {
324324 return ((BigInteger ) objectValue ).intValue ();
325325 }
326326 return (int ) longValue ;
327327 }
328328
329329 @ Override
330- public long toLong () {
330+ public long castAsLong () {
331331 if (type == Type .BIG_INTEGER ) {
332332 return ((BigInteger ) objectValue ).longValue ();
333333 }
334334 return (long ) longValue ;
335335 }
336336
337337 @ Override
338- public BigInteger toBigInteger () {
338+ public BigInteger castAsBigInteger () {
339339 if (type == Type .BIG_INTEGER ) {
340340 return (BigInteger ) objectValue ;
341341 }
@@ -346,7 +346,7 @@ else if (type == Type.DOUBLE) {
346346 }
347347
348348 @ Override
349- public float toFloat () {
349+ public float castAsFloat () {
350350 if (type == Type .BIG_INTEGER ) {
351351 return ((BigInteger ) objectValue ).floatValue ();
352352 }
@@ -357,7 +357,7 @@ else if (type == Type.DOUBLE) {
357357 }
358358
359359 @ Override
360- public double toDouble () {
360+ public double castAsDouble () {
361361 if (type == Type .BIG_INTEGER ) {
362362 return ((BigInteger ) objectValue ).doubleValue ();
363363 }
@@ -504,14 +504,14 @@ public Variable setFloatValue(double v) {
504504 this .type = Type .DOUBLE ;
505505 this .accessor = floatAccessor ;
506506 this .doubleValue = v ;
507- this .longValue = (long ) v ; // AbstractNumberValueAccessor uses toLong
507+ this .longValue = (long ) v ; // AbstractNumberValueAccessor uses castAsLong
508508 return this ;
509509 }
510510
511511 public Variable setFloatValue (float v ) {
512512 this .type = Type .DOUBLE ;
513513 this .accessor = floatAccessor ;
514- this .longValue = (long ) v ; // AbstractNumberValueAccessor uses toLong
514+ this .longValue = (long ) v ; // AbstractNumberValueAccessor uses castAsLong
515515 return this ;
516516 }
517517
0 commit comments