@@ -55,77 +55,77 @@ private Filters() {
5555 *
5656 * @param fieldName the field name
5757 * @param value the value
58- * @param <TField > the value type
58+ * @param <TItem > the value type
5959 * @return the filter
6060 * @mongodb.driver.manual reference/operator/query/eq $eq
6161 */
62- public static <TField > Bson eq (final String fieldName , final TField value ) {
63- return new SimpleEncodingFilter <TField >(fieldName , value );
62+ public static <TItem > Bson eq (final String fieldName , final TItem value ) {
63+ return new SimpleEncodingFilter <TItem >(fieldName , value );
6464 }
6565
6666 /**
6767 * Creates a filter that matches all documents where the value of the field name does not equal the specified value.
6868 *
6969 * @param fieldName the field name
7070 * @param value the value
71- * @param <TField > the value type
71+ * @param <TItem > the value type
7272 * @return the filter
7373 * @mongodb.driver.manual reference/operator/query/ne $ne
7474 */
75- public static <TField > Bson ne (final String fieldName , final TField value ) {
76- return new OperatorFilter <TField >("$ne" , fieldName , value );
75+ public static <TItem > Bson ne (final String fieldName , final TItem value ) {
76+ return new OperatorFilter <TItem >("$ne" , fieldName , value );
7777 }
7878
7979 /**
8080 * Creates a filter that matches all documents where the value of the given field is greater than the specified value.
8181 *
8282 * @param fieldName the field name
8383 * @param value the value
84- * @param <TField > the value type
84+ * @param <TItem > the value type
8585 * @return the filter
8686 * @mongodb.driver.manual reference/operator/query/gt $gt
8787 */
88- public static <TField > Bson gt (final String fieldName , final TField value ) {
89- return new OperatorFilter <TField >("$gt" , fieldName , value );
88+ public static <TItem > Bson gt (final String fieldName , final TItem value ) {
89+ return new OperatorFilter <TItem >("$gt" , fieldName , value );
9090 }
9191
9292 /**
9393 * Creates a filter that matches all documents where the value of the given field is less than the specified value.
9494 *
9595 * @param fieldName the field name
9696 * @param value the value
97- * @param <TField > the value type
97+ * @param <TItem > the value type
9898 * @return the filter
9999 * @mongodb.driver.manual reference/operator/query/lt $lt
100100 */
101- public static <TField > Bson lt (final String fieldName , final TField value ) {
102- return new OperatorFilter <TField >("$lt" , fieldName , value );
101+ public static <TItem > Bson lt (final String fieldName , final TItem value ) {
102+ return new OperatorFilter <TItem >("$lt" , fieldName , value );
103103 }
104104
105105 /**
106106 * Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.
107107 *
108108 * @param fieldName the field name
109109 * @param value the value
110- * @param <TField > the value type
110+ * @param <TItem > the value type
111111 * @return the filter
112112 * @mongodb.driver.manual reference/operator/query/gte $gte
113113 */
114- public static <TField > Bson gte (final String fieldName , final TField value ) {
115- return new OperatorFilter <TField >("$gte" , fieldName , value );
114+ public static <TItem > Bson gte (final String fieldName , final TItem value ) {
115+ return new OperatorFilter <TItem >("$gte" , fieldName , value );
116116 }
117117
118118 /**
119119 * Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.
120120 *
121121 * @param fieldName the field name
122122 * @param value the value
123- * @param <TField > the value type
123+ * @param <TItem > the value type
124124 * @return the filter
125125 * @mongodb.driver.manual reference/operator/query/lte $lte
126126 */
127- public static <TField > Bson lte (final String fieldName , final TField value ) {
128- return new OperatorFilter <TField >("$lte" , fieldName , value );
127+ public static <TItem > Bson lte (final String fieldName , final TItem value ) {
128+ return new OperatorFilter <TItem >("$lte" , fieldName , value );
129129 }
130130
131131 /**
@@ -465,12 +465,12 @@ public <TDocument> BsonDocument toBsonDocument(final Class<TDocument> documentCl
465465 }
466466 }
467467
468- private static final class OperatorFilter <TField > implements Bson {
468+ private static final class OperatorFilter <TItem > implements Bson {
469469 private final String operatorName ;
470470 private final String fieldName ;
471- private final TField value ;
471+ private final TItem value ;
472472
473- OperatorFilter (final String operatorName , final String fieldName , final TField value ) {
473+ OperatorFilter (final String operatorName , final String fieldName , final TItem value ) {
474474 this .operatorName = notNull ("operatorName" , operatorName );
475475 this .fieldName = notNull ("fieldName" , fieldName );
476476 this .value = value ;
0 commit comments