Compartilhar via


LedgerType Class

public final class LedgerType
extends ExpandableStringEnum<LedgerType>

Type of the ledger. Private means transaction data is encrypted.

Field Summary

Modifier and Type Field and Description
static final LedgerType PRIVATE

Static value Private for LedgerType.

static final LedgerType PUBLIC

Static value Public for LedgerType.

static final LedgerType UNKNOWN

Static value Unknown for LedgerType.

Constructor Summary

Constructor Description
LedgerType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LedgerType value.

Method Summary

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

Creates or finds a LedgerType from its string representation.

static Collection<LedgerType> values()

Gets known LedgerType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

PRIVATE

public static final LedgerType PRIVATE

Static value Private for LedgerType.

PUBLIC

public static final LedgerType PUBLIC

Static value Public for LedgerType.

UNKNOWN

public static final LedgerType UNKNOWN

Static value Unknown for LedgerType.

Constructor Details

LedgerType

@Deprecated
public LedgerType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LedgerType value.

Method Details

fromString

public static LedgerType fromString(String name)

Creates or finds a LedgerType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LedgerType.

values

public static Collection values()

Gets known LedgerType values.

Returns:

known LedgerType values.

Applies to