public class Network
extends java.lang.Object
networkPassphrase
which is hashed to every transaction id.Modifier and Type | Field and Description |
---|---|
static Network |
FUTURENET |
static Network |
PUBLIC |
static Network |
SANDBOX |
static Network |
STANDALONE |
static Network |
TESTNET |
Constructor and Description |
---|
Network(@NonNull java.lang.String networkPassphrase)
Creates a new Network object to represent a network with a given passphrase
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
byte[] |
getNetworkId()
Returns network id (SHA-256 hashed
networkPassphrase ). |
@NonNull java.lang.String |
getNetworkPassphrase()
The network passphrase
|
int |
hashCode() |
java.lang.String |
toString() |
public static final Network PUBLIC
public static final Network TESTNET
public static final Network FUTURENET
public static final Network STANDALONE
public static final Network SANDBOX
public Network(@NonNull @NonNull java.lang.String networkPassphrase)
networkPassphrase
- The network passphrasepublic byte[] getNetworkId()
networkPassphrase
).public java.lang.String toString()
toString
in class java.lang.Object
@NonNull public @NonNull java.lang.String getNetworkPassphrase()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object