[YANGTOOLS-1033] Add Uint conversion methods Created: 13/Oct/19  Updated: 10/Apr/22  Resolved: 13/Oct/19

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.2

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Some downstreams are converting from Uint16 to Uint8, forcing them to use constructs like:

Uint8 foo;
Uint16 bar = Uint16.valueOf(foo);

Provide conversion methods like toUint16() so that the ergonomics is improved.


Generated at Wed Feb 07 20:54:59 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.