Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
    • Tags

    IN a list of enums

    Posted on

    I've tried to determine whether an enum value is in a list of enums.

    for example:
    Cheese( type in ( CheeseType.CHEDDAR, CheeseType.GOUDA ) )

    This doesn't seem to evaluate as expected. Is this a known issue, is there a workaround? I know I can individually check, but our lists are getting quite long.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat