commandsOfType

Helper to simplify getting all Command items with a CommandData of a particular class, interface, or base class.

Return

the possibly empty list of commands with CommandData values matching the clazz restriction.

Parameters

clazz

The class type used for filtering via an Class.isInstance check. clazz must be an extension of CommandData.