Package csw.alarm.models
Class ActivationStatus
java.lang.Object
csw.alarm.models.ActivationStatus
- All Implemented Interfaces:
enumeratum.EnumEntry
,enumeratum.EnumEntry.Lowercase
- Direct Known Subclasses:
ActivationStatus.Active$
,ActivationStatus.Inactive$
public abstract class ActivationStatus
extends Object
implements enumeratum.EnumEntry, enumeratum.EnumEntry.Lowercase
Represents the activation status of an alarm. The activation status of an alarm is configured in the alarm config file.
The activation status of an alarm does not change during it's lifespan.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents active state of the alarm.static class
Represents inactive state 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,
ActivationStatus> name()
The name of ActivationStatus e.g.static scala.collection.immutable.Map<String,
ActivationStatus> static final scala.collection.immutable.Map<String,
ActivationStatus> static scala.collection.immutable.IndexedSeq<ActivationStatus>
values()
Returns a collection ofActivationStatus
e.g active and inactivestatic final scala.collection.immutable.Map<ActivationStatus,
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
-
ActivationStatus
public ActivationStatus()
-
-
Method Details
-
namesToValuesMap
-
lowerCaseNamesToValuesMap
public static final scala.collection.immutable.Map<String,ActivationStatus> lowerCaseNamesToValuesMap() -
upperCaseNameValuesToMap
public static final scala.collection.immutable.Map<String,ActivationStatus> upperCaseNameValuesToMap() -
valuesToIndex
-
values
Returns a collection ofActivationStatus
e.g active and inactive- 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 ActivationStatus e.g. forActive
status, the name will be represented asactive
- Returns:
- (undocumented)
-