Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_REMOVEDCOUNT
The default value is 0, signifying no document is removed
|
static String |
REMOVED_COUNT
Constant to be used when storing and retrieving Json for documents removed.
|
Constructor and Description |
---|
MongoClientDeleteResult()
Default constructor
|
MongoClientDeleteResult(JsonObject mongoClientDeleteResultJson)
Constructor form JSON
|
MongoClientDeleteResult(long docRemovedCount)
Constructor that specify the number of documents removed
|
MongoClientDeleteResult(MongoClientDeleteResult otherMongoClientDeleteResultCopy)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getRemovedCount()
Get the number of removed documents
|
int |
hashCode() |
JsonObject |
toJson()
Convert to JSON
|
public static final long DEFAULT_REMOVEDCOUNT
public static final String REMOVED_COUNT
public MongoClientDeleteResult()
public MongoClientDeleteResult(long docRemovedCount)
docRemovedCount
- public MongoClientDeleteResult(MongoClientDeleteResult otherMongoClientDeleteResultCopy)
otherMongoClientDeleteResultCopy
- the one to copypublic MongoClientDeleteResult(JsonObject mongoClientDeleteResultJson)
mongoClientDeleteResultJson
- the JSONpublic JsonObject toJson()
public long getRemovedCount()
Copyright © 2022 Eclipse. All rights reserved.