OPCFoundation / UA-Java-Legacy

This repository is provided by OPC Foundation as legacy support for an Java version for OPC UA.
https://github.com/OPCFoundation/UA-.NETStandard
Other
355 stars 227 forks source link

Static valueOf(String) for unsigned types #178

Closed bjakke closed 5 years ago

bjakke commented 5 years ago

The functionality is added in #79, however each method is named per the type.

In the jdk types Byte/Short/Integer/Long there is a valueOf(String) and valueOf(String,int) versions of those methods in addition to the type specific name, therefore the stack unsigned types could have them as well. This would making code operating on all of those types more generic e.g. with reflection as the method name is the same (although BigDecimal does not have that).