848586878889909192
return (double) value; } @Override public byte asByte() throws MessageOverflowException { if (!isValidByte()) { throw new MessageFloatOverflowException(value); } return (byte) value; }
9192939495969798
return (byte) value; } @Override public short asShort() throws MessageOverflowException { if(!isValidShort()) throw new MessageFloatOverflowException(value); return (short) value; }
979899100101102103104
return (short) value; } @Override public int asInt() throws MessageOverflowException { if(!isValidInt()) throw new MessageFloatOverflowException(value); return (int) value; }
104105106107108109110111
} @Override public long asLong() throws MessageOverflowException { if(!isValidLong()) throw new MessageFloatOverflowException(value); return (long) value; }
111112113114115116117118119
} @Override public BigInteger asBigInteger() throws MessageOverflowException { if(!isWhole()) throw new MessageFloatOverflowException(value); return BigDecimal.valueOf(value).toBigInteger(); }
8182838485868788
return value; } @Override public byte asByte() throws MessageOverflowException { if(!isValidByte()) throw new MessageFloatOverflowException(value); return (byte) value; }
8788899091929394
93949596979899100
99100101102103104105106
return (int) value; } @Override public long asLong() throws MessageOverflowException { if(!isValidLong()) throw new MessageFloatOverflowException(value); return (long) value; }
105106107108109110111112
return (long) value; } @Override public BigInteger asBigInteger() throws MessageOverflowException { if(!isWhole()) throw new MessageFloatOverflowException(value); return new BigDecimal(value).toBigInteger(); }