EnumEntryOps

enumeratum.EnumEntry$.EnumEntryOps
final implicit class EnumEntryOps[A <: EnumEntry](enumEntry: A) extends AnyVal

Helper implicit class that holds enrichment methods

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def in(firstEntry: A, otherEnums: A*): Boolean

Checks if the current enum value is contained by the set of enum values in the parameter list.

Checks if the current enum value is contained by the set of enum values in the parameter list.

Attributes

firstEntry

First enum of the list.

otherEnums

Remaining enums.

Returns:

true if the current value is contained by the parameter list.

def in(entries: Seq[A]): Boolean

Checks if the current enum value is contained by the set of enum values in the parameter list.

Checks if the current enum value is contained by the set of enum values in the parameter list.

Attributes

entries

First enum of the list.

Returns:

true if the current value is contained by the parameter list.