parseSet

inline fun <T> LayeredPropertyMap.parseSet(itemKeyPrefix: String): Set<T>

Function for reading and parsing the String values stored in the values to an actual set of objects.

Return

A parsed set of elements for given type.

Parameters

itemKeyPrefix

The key prefix we are looking for in the store.

Throws

if the T is not supported or the itemKeyPrefix is blank string.

ValueNotFoundException

if one of the list values is null.

as the result of the conversion is cached, it'll be thrown if the second time around the T is different from it was called for the first time.

Here is an example of what a set will look like (the itemKeyPrefix has to be "corda.ledgerKeyHashes" or "corda.ledgerKeyHashes."): corda.ledgerKeyHashes.1 = corda.ledgerKeyHashes.2 = corda.ledgerKeyHashes.3 =