public class JsonBooleanDocument extends AbstractDocument<java.lang.Boolean>
| Modifier and Type | Method and Description |
|---|---|
static JsonBooleanDocument |
create(java.lang.String id)
Creates a
JsonBooleanDocument which the document id. |
static JsonBooleanDocument |
create(java.lang.String id,
java.lang.Boolean content)
Creates a
JsonBooleanDocument which the document id and content. |
static JsonBooleanDocument |
create(java.lang.String id,
java.lang.Boolean content,
long cas)
Creates a
JsonBooleanDocument which the document id, content and the CAS value. |
static JsonBooleanDocument |
create(java.lang.String id,
int expiry,
java.lang.Boolean content)
Creates a
JsonBooleanDocument which the document id, content and the expiration time. |
static JsonBooleanDocument |
create(java.lang.String id,
int expiry,
java.lang.Boolean content,
long cas)
Creates a
JsonBooleanDocument which the document id, content, CAS value, expiration time and status code. |
static JsonBooleanDocument |
empty()
Creates a empty
JsonBooleanDocument. |
static JsonBooleanDocument |
from(JsonBooleanDocument doc,
java.lang.Boolean content)
Creates a copy from a different
JsonBooleanDocument, but changes the content. |
static JsonBooleanDocument |
from(JsonBooleanDocument doc,
long cas)
Creates a copy from a different
JsonBooleanDocument, but changes the CAS value. |
static JsonBooleanDocument |
from(JsonBooleanDocument doc,
java.lang.String id)
Creates a copy from a different
JsonBooleanDocument, but changes the document ID. |
static JsonBooleanDocument |
from(JsonBooleanDocument doc,
java.lang.String id,
java.lang.Boolean content)
Creates a copy from a different
JsonBooleanDocument, but changes the document ID and content. |
public static JsonBooleanDocument empty()
Creates a empty JsonBooleanDocument.
JsonBooleanDocument.public static JsonBooleanDocument create(java.lang.String id)
Creates a JsonBooleanDocument which the document id.
id - the per-bucket unique document id.JsonBooleanDocument.public static JsonBooleanDocument create(java.lang.String id, java.lang.Boolean content)
Creates a JsonBooleanDocument which the document id and content.
id - the per-bucket unique document id.content - the content of the document.JsonBooleanDocument.public static JsonBooleanDocument create(java.lang.String id, java.lang.Boolean content, long cas)
Creates a JsonBooleanDocument which the document id, content and the CAS value.
id - the per-bucket unique document id.content - the content of the document.cas - the CAS (compare and swap) value for optimistic concurrency.JsonBooleanDocument.public static JsonBooleanDocument create(java.lang.String id, int expiry, java.lang.Boolean content)
Creates a JsonBooleanDocument which the document id, content and the expiration time.
id - the per-bucket unique document id.content - the content of the document.expiry - the expiration time of the document.JsonBooleanDocument.public static JsonBooleanDocument create(java.lang.String id, int expiry, java.lang.Boolean content, long cas)
Creates a JsonBooleanDocument which the document id, content, CAS value, expiration time and status code.
This factory method is normally only called within the client library when a response is analyzed and a document is returned which is enriched with the status code. It does not make sense to pre populate the status field from the user level code.
id - the per-bucket unique document id.content - the content of the document.cas - the CAS (compare and swap) value for optimistic concurrency.expiry - the expiration time of the document.JsonBooleanDocument.public static JsonBooleanDocument from(JsonBooleanDocument doc, java.lang.String id)
Creates a copy from a different JsonBooleanDocument, but changes the document ID.
doc - the original JsonBooleanDocument to copy.id - the per-bucket unique document id.JsonBooleanDocument with the changed properties.public static JsonBooleanDocument from(JsonBooleanDocument doc, java.lang.Boolean content)
Creates a copy from a different JsonBooleanDocument, but changes the content.
doc - the original JsonBooleanDocument to copy.content - the content of the document.JsonBooleanDocument with the changed properties.public static JsonBooleanDocument from(JsonBooleanDocument doc, java.lang.String id, java.lang.Boolean content)
Creates a copy from a different JsonBooleanDocument, but changes the document ID and content.
doc - the original JsonBooleanDocument to copy.id - the per-bucket unique document id.content - the content of the document.JsonBooleanDocument with the changed properties.public static JsonBooleanDocument from(JsonBooleanDocument doc, long cas)
Creates a copy from a different JsonBooleanDocument, but changes the CAS value.
doc - the original JsonBooleanDocument to copy.cas - the CAS (compare and swap) value for optimistic concurrency.JsonBooleanDocument with the changed properties.