[YANGTOOLS-1135] Add Uint{8,16,32,64}.saturatedOf() methods Created: 28/Sep/20  Updated: 02/Oct/20  Resolved: 02/Oct/20

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0, 4.0.14, 5.0.7

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   

In certain scenarios, like performance counters, we want to clamp minimum/maximum without incurring an exception. Add saturated conversion methods.


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