@@ -30,19 +30,6 @@ public final class EncoderContext {
30
30
31
31
private final boolean encodingCollectibleDocument ;
32
32
33
- /**
34
- * Returns true if the the value to be encoded is a document that will be
35
- * put in a MongoDB collection. Encoders for such documents
36
- * might choose to act differently when encoding such as documents,
37
- * e.g. by re-ordering the fields in some way (like encoding the _id
38
- * field first).
39
- *
40
- * @return true if the value to be encoded is a document that will be put in a MongoDB collection
41
- */
42
- public boolean isEncodingCollectibleDocument () {
43
- return encodingCollectibleDocument ;
44
- }
45
-
46
33
/**
47
34
* Create a builder.
48
35
*
@@ -62,11 +49,9 @@ private Builder() {
62
49
}
63
50
64
51
/**
65
- * Set to true if the the value to be encoded is a
66
- * document that will be put in a MongoDB collection.
52
+ * Set to true if the the value to be encoded is a document that will be put in a MongoDB collection.
67
53
*
68
- * @param encodingCollectibleDocument true if the value to be encoded is a document
69
- * that will be put in a MongoDB collection
54
+ * @param encodingCollectibleDocument true if the value to be encoded is a document that will be put in a MongoDB collection
70
55
* @return this
71
56
*/
72
57
public Builder isEncodingCollectibleDocument (final boolean encodingCollectibleDocument ) {
@@ -83,6 +68,17 @@ public EncoderContext build() {
83
68
}
84
69
}
85
70
71
+ /**
72
+ * Returns true if the the value to be encoded is a document that will be put in a MongoDB collection. Encoders for such documents
73
+ * might choose to act differently when encoding such as documents, e.g. by re-ordering the fields in some way (like encoding the _id
74
+ * field first).
75
+ *
76
+ * @return true if the value to be encoded is a document that will be put in a MongoDB collection
77
+ */
78
+ public boolean isEncodingCollectibleDocument () {
79
+ return encodingCollectibleDocument ;
80
+ }
81
+
86
82
/**
87
83
* Creates a child context based on this and serializes the value with it to the writer.
88
84
*
0 commit comments