steem-java-api-wrapper icon indicating copy to clipboard operation
steem-java-api-wrapper copied to clipboard

Use .toUnsigned in setter

Open marvin-we opened this issue 8 years ago • 2 comments
trafficstars

marvin-we avatar May 27 '17 20:05 marvin-we

The idea: Use the correct type internally (e.g. long for uint64), but offer getter and setters for the next bigger type (e.g. BigInteger). This would make sure that the toByteArray() methods use the correct type without effecting the usabilty. All others solution would need the user to be aware of unsigned types which could become a nightmare for those who would not read the docu/javadoc.

marvin-we avatar Jul 29 '17 12:07 marvin-we

jOOU to the rescue?

marvin-we avatar Oct 21 '17 10:10 marvin-we