All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.ledger.ParticipantStateUpdateInfoData Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.ledger;

import com.jd.blockchain.crypto.PubKey;

import utils.net.NetworkAddress;

public class ParticipantStateUpdateInfoData implements ParticipantStateUpdateInfo {
    private PubKey pubKey;
    private ParticipantNodeState state;
    private NetworkAddress networkAddress;

    public ParticipantStateUpdateInfoData(PubKey pubKey, ParticipantNodeState state, NetworkAddress networkAddress) {
        this.pubKey = pubKey;
        this.state = state;
        this.networkAddress = networkAddress;
    }

    public void setPubKey(PubKey pubKey) {
        this.pubKey = pubKey;
    }

    @Override
    public PubKey getPubKey() {
        return pubKey;
    }

    public void setNetworkAddress(NetworkAddress networkAddress) {
        this.networkAddress = networkAddress;
    }

    @Override
    public NetworkAddress getNetworkAddress() {
        return networkAddress;
    }

    public void setState(ParticipantNodeState state) {
        this.state = state;
    }

    @Override
    public ParticipantNodeState getState() {
        return state;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy