Package csw.logging.models
Class Level$
java.lang.Object
csw.logging.models.Level$
- All Implemented Interfaces:
enumeratum.Enum<Level>
Companion object for the level trait.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface enumeratum.Enum
enumeratum$Enum$$existingEntriesString, extraNamesToValuesMap, indexOf, withName, withNameEither, withNameInsensitive, withNameInsensitiveEither, withNameInsensitiveOption, withNameLowercaseOnly, withNameLowercaseOnlyEither, withNameLowercaseOnlyOption, withNameOption, withNameUppercaseOnly, withNameUppercaseOnlyEither, withNameUppercaseOnlyOption
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Level$
public Level$()
-
-
Method Details
-
namesToValuesMap
- Specified by:
namesToValuesMap
in interfaceenumeratum.Enum<Level>
-
lowerCaseNamesToValuesMap
- Specified by:
lowerCaseNamesToValuesMap
in interfaceenumeratum.Enum<Level>
-
upperCaseNameValuesToMap
- Specified by:
upperCaseNameValuesToMap
in interfaceenumeratum.Enum<Level>
-
valuesToIndex
- Specified by:
valuesToIndex
in interfaceenumeratum.Enum<Level>
-
values
- Specified by:
values
in interfaceenumeratum.Enum<Level>
-
stringify
-
apply
Level constructor.- Parameters:
name
- a level name. Case is ignored.- Returns:
- the corresponding Level if there is one for that name. Otherwise WARN.
-
hasLevel
Checks if a level name exists.- Parameters:
name
- the level name.- Returns:
- true if a level with that name exists.
-