Package csw.logging.models
Class Level
- java.lang.Object
-
- csw.logging.models.Level
-
- All Implemented Interfaces:
LoggingSerializable
,enumeratum.EnumEntry
,java.lang.Comparable<Level>
,scala.math.Ordered<Level>
- Direct Known Subclasses:
Level.DEBUG$
,Level.ERROR$
,Level.FATAL$
,Level.INFO$
,Level.TRACE$
,Level.WARN$
public abstract class Level extends java.lang.Object implements enumeratum.EnumEntry, LoggingSerializable, scala.math.Ordered<Level>
A logging level.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Level.DEBUG$
The DEBUG logging level.static class
Level.ERROR$
The ERROR logging level.static class
Level.FATAL$
The FATAL logging level.static class
Level.INFO$
The INFO logging level.static class
Level.TRACE$
The TRACE logging level.static class
Level.WARN$
The WARN logging level.-
Nested classes/interfaces inherited from interface enumeratum.EnumEntry
enumeratum.EnumEntry.Camelcase, enumeratum.EnumEntry.CapitalDotcase, enumeratum.EnumEntry.CapitalHyphencase, enumeratum.EnumEntry.CapitalSnakecase, enumeratum.EnumEntry.CapitalWords, enumeratum.EnumEntry.Dotcase, enumeratum.EnumEntry.EnumEntryOps<A extends enumeratum.EnumEntry>, enumeratum.EnumEntry.EnumEntryOps$, enumeratum.EnumEntry.Hyphencase, enumeratum.EnumEntry.LowerCamelcase, enumeratum.EnumEntry.Lowercase, enumeratum.EnumEntry.Snakecase, enumeratum.EnumEntry.Uncapitalised, enumeratum.EnumEntry.Uppercase, enumeratum.EnumEntry.UpperDotcase, enumeratum.EnumEntry.UpperHyphencase, enumeratum.EnumEntry.UpperSnakecase, enumeratum.EnumEntry.UpperWords, enumeratum.EnumEntry.Words
-
-
Constructor Summary
Constructors Constructor Description Level(java.lang.String entryName, int pos)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Level
apply(java.lang.String name)
Level constructor.int
compare(Level that)
Compares levelsjava.lang.String
entryName()
static java.lang.String
enumeratum$Enum$$existingEntriesString()
protected static scala.collection.immutable.IndexedSeq<A>
findValues()
static boolean
hasLevel(java.lang.String name)
Checks if a level name exists.static int
indexOf(A member)
static scala.collection.immutable.Map<java.lang.String,Level>
lowerCaseNamesToValuesMap()
java.lang.String
name()
A level name.static scala.collection.immutable.Map<java.lang.String,Level>
namesToValuesMap()
int
pos()
static java.lang.String
stringify()
static scala.collection.immutable.Map<java.lang.String,Level>
upperCaseNameValuesToMap()
static scala.collection.immutable.IndexedSeq<Level>
values()
static scala.collection.immutable.Map<Level,java.lang.Object>
valuesToIndex()
static A
withName(java.lang.String name)
static A
withNameInsensitive(java.lang.String name)
static scala.Option<A>
withNameInsensitiveOption(java.lang.String name)
static A
withNameLowercaseOnly(java.lang.String name)
static scala.Option<A>
withNameLowercaseOnlyOption(java.lang.String name)
static scala.Option<A>
withNameOption(java.lang.String name)
static A
withNameUppercaseOnly(java.lang.String name)
static scala.Option<A>
withNameUppercaseOnlyOption(java.lang.String name)
-
-
-
Method Detail
-
namesToValuesMap
public static scala.collection.immutable.Map<java.lang.String,Level> namesToValuesMap()
-
lowerCaseNamesToValuesMap
public static final scala.collection.immutable.Map<java.lang.String,Level> lowerCaseNamesToValuesMap()
-
upperCaseNameValuesToMap
public static final scala.collection.immutable.Map<java.lang.String,Level> upperCaseNameValuesToMap()
-
valuesToIndex
public static final scala.collection.immutable.Map<Level,java.lang.Object> valuesToIndex()
-
values
public static scala.collection.immutable.IndexedSeq<Level> values()
-
stringify
public static java.lang.String stringify()
-
apply
public static 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 static 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.
-
withName
public static A withName(java.lang.String name)
-
withNameOption
public static scala.Option<A> withNameOption(java.lang.String name)
-
withNameInsensitive
public static A withNameInsensitive(java.lang.String name)
-
withNameUppercaseOnly
public static A withNameUppercaseOnly(java.lang.String name)
-
withNameLowercaseOnly
public static A withNameLowercaseOnly(java.lang.String name)
-
withNameInsensitiveOption
public static scala.Option<A> withNameInsensitiveOption(java.lang.String name)
-
withNameUppercaseOnlyOption
public static scala.Option<A> withNameUppercaseOnlyOption(java.lang.String name)
-
withNameLowercaseOnlyOption
public static scala.Option<A> withNameLowercaseOnlyOption(java.lang.String name)
-
indexOf
public static int indexOf(A member)
-
findValues
protected static scala.collection.immutable.IndexedSeq<A> findValues()
-
enumeratum$Enum$$existingEntriesString
public static java.lang.String enumeratum$Enum$$existingEntriesString()
-
entryName
public java.lang.String entryName()
- Specified by:
entryName
in interfaceenumeratum.EnumEntry
-
pos
public int pos()
-
name
public java.lang.String name()
A level name.- Returns:
- (undocumented)
-
-