Cash Config

Cash Config

227 Downloads

add `get<type>` functions to base class.

MasterCash opened this issue ยท 2 comments

commented

currently given a random BaseConfigItem you end up doing this to get the value:

item.asString().getValue();

It would be simpler if you could just do:

item.getString()

Though there is some concern about naming here with asString and getString but I believe it to be a minimal issue.

commented

Would need some thought about how to handle this with ConfigList and ConfigGroup possibly return the unmodifiable list?

commented

maybe add getGroupItem and getListItem as well to cut down the asGroup().getItem