com.aol.micro.server.couchbase.base.VersionedKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-couchbase Show documentation
Show all versions of micro-couchbase Show documentation
Opinionated rest microservices
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