steem-java-api-wrapper
steem-java-api-wrapper copied to clipboard
Use .toUnsigned in setter
trafficstars
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.
jOOU to the rescue?