- All Implemented Interfaces:
Serializable,Comparable<NetworkName>,Constable
Deprecated.
Enum for the network names.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Deprecated.Deprecated.Deprecated. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkNamefromString(String networkName) Deprecated.Assign the network name via a string name.toString()Deprecated.static NetworkNameDeprecated.Returns the enum constant of this class with the specified name.static NetworkName[]values()Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAINNET
Deprecated.The mainnet network -
TESTNET
Deprecated.The testnet network -
PREVIEWNET
Deprecated.The previewnet network -
OTHER
Deprecated.Other network
-
-
Field Details
-
id
final int idDeprecated.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Deprecated.Assign the network name via a string name.- Parameters:
networkName- the string containing the network name- Returns:
- the ledger id
-
toString
Deprecated.- Overrides:
toStringin classEnum<NetworkName>
-