T
- the type of document to insert. This can be of any type for which a Codec
is registeredpublic final class InsertOneModel<T> extends WriteModel<T>
Constructor and Description |
---|
InsertOneModel(T document)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
T |
getDocument()
Gets the document to insert.
|
java.lang.String |
toString() |
public InsertOneModel(T document)
document
- the document to insert, which may not be null.public T getDocument()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved