Package com.mongodb.client.model.mql
Interface MqlEntry<T extends MqlValue>
- Type Parameters:
T- The type of the value
- All Superinterfaces:
MqlValue
A map entry value in the context
of the MongoDB Query Language (MQL). An entry has a
string key and some
value. Entries are used with
maps.
Entries are document-like and map-like, unless the method returning the entry specifies otherwise.
- Since:
- 4.9.0
-
Method Summary
Methods inherited from interface com.mongodb.client.model.mql.MqlValue
asString, eq, equals, gt, gte, isArrayOr, isBooleanOr, isDateOr, isDocumentOr, isIntegerOr, isMapOr, isNumberOr, isStringOr, lt, lte, ne, passTo, switchOn
-
Method Details
-
getKey
MqlString getKey()The key ofthisentry.- Returns:
- the key.
- Since server release
- 5.0
-
getValue
T getValue()The value ofthisentry.- Returns:
- the value.
- Since server release
- 5.0
-
setValue
An entry with the same key asthisentry, and the specifiedvalue.- Parameters:
value- the value.- Returns:
- the resulting entry.
- Since server release
- 5.0
-
setKey
An entry with the same value asthisentry, and the specifiedkey.- Parameters:
key- the key.- Returns:
- the resulting entry.
- Since server release
- 5.0
-