Class SeverityLevel.Set
- java.lang.Object
-
- com.floragunn.signals.watch.severity.SeverityLevel.Set
-
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent
- Enclosing class:
- SeverityLevel
public static class SeverityLevel.Set extends Object implements org.elasticsearch.common.xcontent.ToXContent
-
-
Constructor Summary
Constructors Constructor Description Set(SeverityLevel first, SeverityLevel... rest)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(SeverityLevel level)static SeverityLevel.SetcreateWithNoneDisallowed(com.fasterxml.jackson.databind.JsonNode jsonNode)booleanequals(Object o)SeverityLevelgetLowest()booleanisGained(SeverityLevel oldLevel, SeverityLevel newLevel)booleanisLost(SeverityLevel oldLevel, SeverityLevel newLevel)booleanisSubsetOf(Set<SeverityLevel> other)Set<SeverityLevel>missingFromOther(Set<SeverityLevel> other)intsize()StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
-
-
Constructor Detail
-
Set
public Set(SeverityLevel first, SeverityLevel... rest)
-
-
Method Detail
-
contains
public boolean contains(SeverityLevel level)
-
isGained
public boolean isGained(SeverityLevel oldLevel, SeverityLevel newLevel)
-
isSubsetOf
public boolean isSubsetOf(Set<SeverityLevel> other)
-
missingFromOther
public Set<SeverityLevel> missingFromOther(Set<SeverityLevel> other)
-
getLowest
public SeverityLevel getLowest()
-
isLost
public boolean isLost(SeverityLevel oldLevel, SeverityLevel newLevel)
-
createWithNoneDisallowed
public static SeverityLevel.Set createWithNoneDisallowed(com.fasterxml.jackson.databind.JsonNode jsonNode) throws com.floragunn.searchsupport.jobs.config.validation.ConfigValidationException
- Throws:
com.floragunn.searchsupport.jobs.config.validation.ConfigValidationException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
size
public int size()
-
-