AlternativeType Class

public final class AlternativeType
extends ExpandableStringEnum<AlternativeType>

Describes the type of the alternative option.

Field Summary

Modifier and Type Field and Description
static final AlternativeType NONE

Static value None for AlternativeType.

static final AlternativeType OFFER

Static value Offer for AlternativeType.

static final AlternativeType PLAN

Static value Plan for AlternativeType.

Constructor Summary

Constructor Description
AlternativeType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AlternativeType value.

Method Summary

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

Creates or finds a AlternativeType from its string representation.

static Collection<AlternativeType> values()

Gets known AlternativeType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

NONE

public static final AlternativeType NONE

Static value None for AlternativeType.

OFFER

public static final AlternativeType OFFER

Static value Offer for AlternativeType.

PLAN

public static final AlternativeType PLAN

Static value Plan for AlternativeType.

Constructor Details

AlternativeType

@Deprecated
public AlternativeType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AlternativeType value.

Method Details

fromString

public static AlternativeType fromString(String name)

Creates or finds a AlternativeType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AlternativeType.

values

public static Collection values()

Gets known AlternativeType values.

Returns:

known AlternativeType values.

Applies to