I want to have two methods, one which returns all items and another, which returns specific Item by name (assume
Item getItem(String itemName) List<Item> getItems()
How should I name these methods? I'm not sure about
getItems cause these methods just looks too simular (it's hard to catch if we have extra
s at the end).
I can imaging many options:
For first method I imagine these names:
getItem getItemByName getSingleItem
For second method I imaging these names:
getItems getAllItems getItemList getItemsList
I have 3*4 = 12 combinations in total already, which one is better to use?