ActivityState Class

public final class ActivityState
extends ExpandableStringEnum<ActivityState>

Activity state. This is an optional property and if not provided, the state will be Active by default.

Field Summary

Modifier and Type Field and Description
static final ActivityState ACTIVE

Static value Active for ActivityState.

static final ActivityState INACTIVE

Static value Inactive for ActivityState.

Constructor Summary

Constructor Description
ActivityState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ActivityState value.

Method Summary

Modifier and Type Method and Description
static ActivityState fromString(String name)

Creates or finds a ActivityState from its string representation.

static Collection<ActivityState> values()

Gets known ActivityState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ACTIVE

public static final ActivityState ACTIVE

Static value Active for ActivityState.

INACTIVE

public static final ActivityState INACTIVE

Static value Inactive for ActivityState.

Constructor Details

ActivityState

@Deprecated
public ActivityState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ActivityState value.

Method Details

fromString

public static ActivityState fromString(String name)

Creates or finds a ActivityState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ActivityState.

values

public static Collection values()

Gets known ActivityState values.

Returns:

known ActivityState values.

Applies to