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

com.jd.blockchain.transaction.KVData Maven / Gradle / Ivy

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

import com.jd.blockchain.ledger.BytesValue;
import com.jd.blockchain.ledger.DataAccountKVSetOperation.KVWriteEntry;

public class KVData implements KVWriteEntry {

	private String key;

	private BytesValue value;

	private long expectedVersion;

	public KVData(String key, BytesValue value, long expectedVersion) {
		this.key = key;
		this.value = value;
		this.expectedVersion = expectedVersion;
	}

	@Override
	public String getKey() {
		return key;
	}

	@Override
	public BytesValue getValue() {
		return value;
	}

	@Override
	public long getExpectedVersion() {
		return expectedVersion;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy