类 CoinFrom
- java.lang.Object
-
- network.nerve.base.data.BaseNulsData
-
- network.nerve.base.data.Coin
-
- network.nerve.base.data.CoinFrom
-
- 所有已实现的接口:
Serializable,Cloneable,NulsData
public class CoinFrom extends Coin
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 network.nerve.base.data.Coin
address, amount, assetsChainId, assetsId
-
-
构造器概要
构造器 构造器 说明 CoinFrom()CoinFrom(byte[] address, int assetsChainId, int assetsId)CoinFrom(byte[] address, int assetsChainId, int assetsId, BigInteger amount, byte locked)CoinFrom(byte[] address, int assetsChainId, int assetsId, BigInteger amount, byte[] nonce, byte locked)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 byte[]getAddress()BigIntegergetAmount()intgetAssetsChainId()intgetAssetsId()bytegetLocked()byte[]getNonce()voidparse(NulsByteBuffer byteBuffer)protected voidserializeToStream(NulsOutputStreamBuffer stream)voidsetAddress(byte[] address)voidsetAmount(BigInteger amount)voidsetAssetsChainId(int assetsChainId)voidsetAssetsId(int assetsId)voidsetLocked(byte locked)voidsetNonce(byte[] nonce)intsize()StringtoString()-
从类继承的方法 network.nerve.base.data.BaseNulsData
parse, serialize
-
-
-
-
构造器详细资料
-
CoinFrom
public CoinFrom()
-
CoinFrom
public CoinFrom(byte[] address, int assetsChainId, int assetsId)
-
CoinFrom
public CoinFrom(byte[] address, int assetsChainId, int assetsId, BigInteger amount, byte locked)
-
CoinFrom
public CoinFrom(byte[] address, int assetsChainId, int assetsId, BigInteger amount, byte[] nonce, byte locked)
-
-
方法详细资料
-
serializeToStream
protected void serializeToStream(NulsOutputStreamBuffer stream) throws IOException
- 指定者:
serializeToStream在类中BaseNulsData- 抛出:
IOException
-
parse
public void parse(NulsByteBuffer byteBuffer) throws NulsException
- 指定者:
parse在类中BaseNulsData- 抛出:
NulsException
-
size
public int size()
-
getAddress
public byte[] getAddress()
- 覆盖:
getAddress在类中Coin
-
setAddress
public void setAddress(byte[] address)
- 覆盖:
setAddress在类中Coin
-
getAssetsChainId
public int getAssetsChainId()
- 覆盖:
getAssetsChainId在类中Coin
-
setAssetsChainId
public void setAssetsChainId(int assetsChainId)
- 覆盖:
setAssetsChainId在类中Coin
-
getAssetsId
public int getAssetsId()
- 覆盖:
getAssetsId在类中Coin
-
setAssetsId
public void setAssetsId(int assetsId)
- 覆盖:
setAssetsId在类中Coin
-
getAmount
public BigInteger getAmount()
-
setAmount
public void setAmount(BigInteger amount)
-
getNonce
public byte[] getNonce()
-
setNonce
public void setNonce(byte[] nonce)
-
getLocked
public byte getLocked()
-
setLocked
public void setLocked(byte locked)
-
-