Share via


KeyType Class

public final class KeyType
extends ExpandableStringEnum<KeyType>

Defines values for KeyType.

Field Summary

Modifier and Type Field and Description
static final KeyType PRIMARY

Static value Primary for KeyType.

static final KeyType SECONDARY

Static value Secondary for KeyType.

Constructor Summary

Constructor Description
KeyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of KeyType value.

Method Summary

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

Creates or finds a KeyType from its string representation.

static Collection<KeyType> values()

Gets known KeyType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

PRIMARY

public static final KeyType PRIMARY

Static value Primary for KeyType.

SECONDARY

public static final KeyType SECONDARY

Static value Secondary for KeyType.

Constructor Details

KeyType

@Deprecated
public KeyType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of KeyType value.

Method Details

fromString

public static KeyType fromString(String name)

Creates or finds a KeyType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding KeyType.

values

public static Collection<KeyType> values()

Gets known KeyType values.

Returns:

known KeyType values.

Applies to