MoveCost Class

public final class MoveCost
extends ExpandableStringEnum<MoveCost>

Specifies the move cost for the service.

Field Summary

Modifier and Type Field and Description
static final MoveCost HIGH

Static value High for MoveCost.

static final MoveCost LOW

Static value Low for MoveCost.

static final MoveCost MEDIUM

Static value Medium for MoveCost.

static final MoveCost ZERO

Static value Zero for MoveCost.

Constructor Summary

Constructor Description
MoveCost()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MoveCost value.

Method Summary

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

Creates or finds a MoveCost from its string representation.

static Collection<MoveCost> values()

Gets known MoveCost values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HIGH

public static final MoveCost HIGH

Static value High for MoveCost.

LOW

public static final MoveCost LOW

Static value Low for MoveCost.

MEDIUM

public static final MoveCost MEDIUM

Static value Medium for MoveCost.

ZERO

public static final MoveCost ZERO

Static value Zero for MoveCost.

Constructor Details

MoveCost

@Deprecated
public MoveCost()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MoveCost value.

Method Details

fromString

public static MoveCost fromString(String name)

Creates or finds a MoveCost from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding MoveCost.

values

public static Collection values()

Gets known MoveCost values.

Returns:

known MoveCost values.

Applies to