[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. |