Package csw.logging.models
Class Level$
- java.lang.Object
-
- csw.logging.models.Level$
-
-
Constructor Summary
Constructors Constructor Description Level$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Level
apply(java.lang.String name)
Level constructor.boolean
hasLevel(java.lang.String name)
Checks if a level name exists.scala.collection.immutable.Map<java.lang.String,Level>
lowerCaseNamesToValuesMap()
scala.collection.immutable.Map<java.lang.String,Level>
namesToValuesMap()
java.lang.String
stringify()
scala.collection.immutable.Map<java.lang.String,Level>
upperCaseNameValuesToMap()
scala.collection.immutable.IndexedSeq<Level>
values()
scala.collection.immutable.Map<Level,java.lang.Object>
valuesToIndex()
-
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 Detail
-
MODULE$
public static final Level$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
namesToValuesMap
public scala.collection.immutable.Map<java.lang.String,Level> namesToValuesMap()
- Specified by:
namesToValuesMap
in interfaceenumeratum.Enum<Level>
-
lowerCaseNamesToValuesMap
public final scala.collection.immutable.Map<java.lang.String,Level> lowerCaseNamesToValuesMap()
- Specified by:
lowerCaseNamesToValuesMap
in interfaceenumeratum.Enum<Level>
-
upperCaseNameValuesToMap
public final scala.collection.immutable.Map<java.lang.String,Level> upperCaseNameValuesToMap()
- Specified by:
upperCaseNameValuesToMap
in interfaceenumeratum.Enum<Level>
-
valuesToIndex
public final scala.collection.immutable.Map<Level,java.lang.Object> valuesToIndex()
- Specified by:
valuesToIndex
in interfaceenumeratum.Enum<Level>
-
values
public scala.collection.immutable.IndexedSeq<Level> values()
- Specified by:
values
in interfaceenumeratum.Enum<Level>
-
stringify
public java.lang.String stringify()
-
apply
public Level apply(java.lang.String name)
Level constructor.- Parameters:
name
- a level name. Case is ignored.- Returns:
- the corresponding Level if there is one for that name. Otherwise WARN.
-
hasLevel
public boolean hasLevel(java.lang.String name)
Checks if a level name exists.- Parameters:
name
- the level name.- Returns:
- true if a level with that name exists.
-
-