withEnumConstants

List containing declarations with any enum constant.

Return

A list containing declarations with any enum constant.


List containing declarations with enum constant declarations satisfying the predicate.

Return

A list containing declarations with enum constant declarations satisfying the predicate.

Parameters

predicate

A function that defines the condition to be met by the list of enum constant declarations.