asSet

open fun asSet(array: Array<String>): Set<String>

Helper method that provides a null-safe way to convert a String[] to a Collection for client libraries to use.

Return

a collection or null

Parameters

array

the array to convert