public class AccountName extends Object implements ByteTransformable, SignatureObject
| Constructor and Description |
|---|
AccountName()
Create an account name object with an empty account name.
|
AccountName(String name)
Create an account name object containing the given account name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object otherAccount) |
String |
getName()
Get the account name of this instance.
|
int |
hashCode() |
boolean |
isEmpty()
Returns
true if, and only if, the account name has more than
0 characters. |
void |
setName(String name)
Set the account name of this instance.
|
byte[] |
toByteArray()
Covert the operation into a byte array.
|
String |
toString() |
public AccountName()
public AccountName(String name)
name - The name for the account to set.InvalidParameterException - If the account name is not valid (@see #setName(String)).public String getName()
public void setName(String name)
name - An account name in its String representation. The account name
can either be empty or needs to have a length between 3 and 16
characters. If provided, the account name has to follow
specific rules:
InvalidParameterException - If the account does not fulfill the requirements describes
above.public byte[] toByteArray()
throws BeowulfInvalidTransactionException
ByteTransformabletoByteArray in interface ByteTransformableBeowulfInvalidTransactionException - If there was a problem while transforming the transaction
into a byte array.public boolean isEmpty()
true if, and only if, the account name has more than
0 characters.true if the account name has more than 0,
otherwise falseCopyright © 2019. All rights reserved.