다음을 통해 공유


Reason Class

public final class Reason
extends ExpandableStringEnum<Reason>

Message providing the reason why the given name is invalid.

Field Summary

Modifier and Type Field and Description
static final Reason ALREADY_EXISTS

Static value AlreadyExists for Reason.

static final Reason INVALID

Static value Invalid for Reason.

Constructor Summary

Constructor Description
Reason()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Reason value.

Method Summary

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

Creates or finds a Reason from its string representation.

static Collection<Reason> values()

Gets known Reason values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ALREADY_EXISTS

public static final Reason ALREADY_EXISTS

Static value AlreadyExists for Reason.

INVALID

public static final Reason INVALID

Static value Invalid for Reason.

Constructor Details

Reason

@Deprecated
public Reason()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Reason value.

Method Details

fromString

public static Reason fromString(String name)

Creates or finds a Reason from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Reason.

values

public static Collection<Reason> values()

Gets known Reason values.

Returns:

known Reason values.

Applies to