Class BaseApiEnum
- java.lang.Object
-
- com.atlassian.confluence.api.model.BaseApiEnum
-
- All Implemented Interfaces:
ApiEnum
- Direct Known Subclasses:
ContentDraftService.ConflictPolicy
,ContentRepresentation
,ContentStatus
,ContentTemplateType
,ContentType
,LinkType
,OperationKey
,ResourceType
,SearchOptions.Excerpt
,SpaceStatus
,SpaceType
,TargetType
,UserStatus
@ExperimentalSpi public abstract class BaseApiEnum extends Object implements ApiEnum
Base implementation of ApiEnum with default implementations of interface methods. Concrete enum classes should extend this class rather than implementing ApiEnum directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseApiEnum(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getValue()
int
hashCode()
boolean
in(BaseApiEnum... types)
String
serialise()
String
toString()
-
-
-
Field Detail
-
value
protected final String value
-
-
Constructor Detail
-
BaseApiEnum
protected BaseApiEnum(String value)
-
-
Method Detail
-
getValue
public String getValue()
-
serialise
public String serialise()
-
in
public boolean in(BaseApiEnum... types)
-
-