Package csw.alarm.models
Class ShelveStatus
java.lang.Object
csw.alarm.models.ShelveStatus
- All Implemented Interfaces:
enumeratum.EnumEntry
,enumeratum.EnumEntry.Lowercase
- Direct Known Subclasses:
ShelveStatus.Shelved$
,ShelveStatus.Unshelved$
public abstract class ShelveStatus
extends Object
implements enumeratum.EnumEntry, enumeratum.EnumEntry.Lowercase
Represents whether the alarm is shelved or not. Alarms that are shelved will automatically be unshelved at a specific
time (currently configured at 8 AM local time) if it is not unshelved explicitly. This time is configurable
e.g csw-alarm.shelve-timeout = h:m:s a .
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the shelved status of an alarm.static class
Represents the normal(unshelved) status of an alarm.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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static scala.collection.immutable.Map<String,
A> protected static scala.collection.immutable.IndexedSeq<A>
static int
indexOf
(A member) static final scala.collection.immutable.Map<String,
ShelveStatus> name()
The name of ShelveStatus e.g.static scala.collection.immutable.Map<String,
ShelveStatus> static final scala.collection.immutable.Map<String,
ShelveStatus> static scala.collection.immutable.IndexedSeq<ShelveStatus>
values()
Returns a collection ofShelveStatus
e.g shelved or unshelvedstatic final scala.collection.immutable.Map<ShelveStatus,
Object> static A
static scala.util.Either<enumeratum.NoSuchMember<A>,
A> withNameEither
(String name) static A
withNameInsensitive
(String name) static scala.util.Either<enumeratum.NoSuchMember<A>,
A> static scala.Option<A>
static A
withNameLowercaseOnly
(String name) static scala.util.Either<enumeratum.NoSuchMember<A>,
A> static scala.Option<A>
static scala.Option<A>
withNameOption
(String name) static A
withNameUppercaseOnly
(String name) static scala.util.Either<enumeratum.NoSuchMember<A>,
A> static scala.Option<A>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface enumeratum.EnumEntry
enumeratum$EnumEntry$$stableEntryName
Methods inherited from interface enumeratum.EnumEntry.Lowercase
entryName, enumeratum$EnumEntry$Lowercase$$stableEntryName
-
Constructor Details
-
ShelveStatus
public ShelveStatus()
-
-
Method Details
-
namesToValuesMap
-
lowerCaseNamesToValuesMap
-
upperCaseNameValuesToMap
-
valuesToIndex
-
values
Returns a collection ofShelveStatus
e.g shelved or unshelved- Returns:
- (undocumented)
-
extraNamesToValuesMap
-
withName
-
withNameOption
-
withNameEither
-
withNameInsensitive
-
withNameUppercaseOnly
-
withNameLowercaseOnly
-
withNameInsensitiveOption
-
withNameUppercaseOnlyOption
-
withNameLowercaseOnlyOption
-
withNameInsensitiveEither
public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameInsensitiveEither(String name) -
withNameUppercaseOnlyEither
public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameUppercaseOnlyEither(String name) -
withNameLowercaseOnlyEither
public static scala.util.Either<enumeratum.NoSuchMember<A>,A> withNameLowercaseOnlyEither(String name) -
indexOf
public static int indexOf(A member) -
findValues
protected static scala.collection.immutable.IndexedSeq<A> findValues() -
enumeratum$Enum$$existingEntriesString
-
name
The name of ShelveStatus e.g. forShelved
status, the name will be represented asshelved
- Returns:
- (undocumented)
-