This repository was archived by the owner on Jun 19, 2023. It is now read-only.
Add the ability to try and get an item without an exceptionΒ #112
Open
Description
Having to handle an exception (ItemNotFoundException) when a get does not find an item is a difficult pattern and requires liberal nesting or messy try/catch blocks.
Would it be possible to add a tryGet method which instead of throwing an exception, returns null if the search key does not exist?