isValid

open fun isValid(name: CharSequence): Boolean

Returns if the given name is valid. If this method returns true then the name may be used with of without throwing an exception.

Return

true if the name is valid

Parameters

name

the name to test