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 Levelapply(java.lang.String name)Level constructor.booleanhasLevel(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.Stringstringify()scala.collection.immutable.Map<java.lang.String,Level>upperCaseNameValuesToMap()scala.collection.immutable.IndexedSeq<Level>values()scala.collection.immutable.Map<Level,java.lang.Object>valuesToIndex()
-
-
-
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:
namesToValuesMapin interfaceenumeratum.Enum<Level>
-
lowerCaseNamesToValuesMap
public final scala.collection.immutable.Map<java.lang.String,Level> lowerCaseNamesToValuesMap()
- Specified by:
lowerCaseNamesToValuesMapin interfaceenumeratum.Enum<Level>
-
upperCaseNameValuesToMap
public final scala.collection.immutable.Map<java.lang.String,Level> upperCaseNameValuesToMap()
- Specified by:
upperCaseNameValuesToMapin interfaceenumeratum.Enum<Level>
-
valuesToIndex
public final scala.collection.immutable.Map<Level,java.lang.Object> valuesToIndex()
- Specified by:
valuesToIndexin interfaceenumeratum.Enum<Level>
-
values
public scala.collection.immutable.IndexedSeq<Level> values()
- Specified by:
valuesin 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.
-
-