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

com.jd.blockchain.storage.service.utils.VersioningKVData Maven / Gradle / Ivy

package com.jd.blockchain.storage.service.utils;

import utils.DataEntry;

public class VersioningKVData implements DataEntry {

		private K key;

		private long version;

		private V value;

		public VersioningKVData(K key, long version, V value) {
			this.key = key;
			this.version = version;
			this.value = value;
		}

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

		@Override
		public long getVersion() {
			return version;
		}

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

	}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy