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

com.aol.micro.server.couchbase.base.VersionedKey Maven / Gradle / Ivy

There is a newer version: 0.91.11
Show newest version
package com.aol.micro.server.couchbase.base;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.Wither;

import com.aol.micro.server.rest.jackson.JacksonUtil;



@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "versioned-key")
@XmlType(name = "")
@AllArgsConstructor
@Wither
@Getter
public class VersionedKey {

	private final String key;

	private final Long version;

	public VersionedKey() {
		key = null;
		version = -1l;
	}

	public String toJson() {
		return JacksonUtil.serializeToJson(this);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy