has All Enum Constants
Determines whatever the declaration has all enum constants with the specified predicate.
Note that if the enum constants contains no elements, the function returns true
because there are no elements in it that do not match the predicate.
Return
true
if the declaration has all enum constants with the specified predicate, false
otherwise.
Parameters
predicate
The predicate function to determine if an enum constant satisfies a condition.