Package ai.neuon.utility.bson
Class BsonDocumentKt
-
- All Implemented Interfaces:
public final class BsonDocumentKt
-
-
Method Summary
Modifier and Type Method Description final static BsonStringgetStringOrNull(BsonDocument $self, String key)final static BsonNumbergetNumberOrNull(BsonDocument $self, String key)final static BsonDateTimegetDateTimeOrNull(BsonDocument $self, String key)final static BsonDoublegetDoubleOrNull(BsonDocument $self, String key)final static BsonArraygetArrayOrNull(BsonDocument $self, String key)final static BsonDocumentgetDocumentOrNull(BsonDocument $self, String key)final static BsonObjectIdgetObjectIdOrNull(BsonDocument $self, String key)final static BsonBooleangetBooleanOrNull(BsonDocument $self, String key)final static BsonValuegetOrNull(BsonDocument $self, String key)final static DoublegetNumberAsDoubleOrNull(BsonDocument $self, String key)final static BsonDocumentbuildBsonDocument(Function1<BsonDocument, Unit> builder)final static UnitputBsonDocument(BsonDocument $self, String key, Function1<BsonDocument, Unit> builder)final static UnitputBsonArray(BsonDocument $self, String key, BsonArray array)final static UnitputBsonArray(BsonDocument $self, String key, Function1<BsonArray, Unit> builder)final static Unitput(BsonDocument $self, String key, String value)final static Unitput(BsonDocument $self, String key, Integer value)final static Unitput(BsonDocument $self, String key, Long value)final static Unitput(BsonDocument $self, String key, Float value)final static Unitput(BsonDocument $self, String key, Double value)final static Unitput(BsonDocument $self, String key, Boolean value)final static Unitput(BsonDocument $self, String key, ObjectId value)-
-
Method Detail
-
getStringOrNull
final static BsonString getStringOrNull(BsonDocument $self, String key)
-
getNumberOrNull
final static BsonNumber getNumberOrNull(BsonDocument $self, String key)
-
getDateTimeOrNull
final static BsonDateTime getDateTimeOrNull(BsonDocument $self, String key)
-
getDoubleOrNull
final static BsonDouble getDoubleOrNull(BsonDocument $self, String key)
-
getArrayOrNull
final static BsonArray getArrayOrNull(BsonDocument $self, String key)
-
getDocumentOrNull
final static BsonDocument getDocumentOrNull(BsonDocument $self, String key)
-
getObjectIdOrNull
final static BsonObjectId getObjectIdOrNull(BsonDocument $self, String key)
-
getBooleanOrNull
final static BsonBoolean getBooleanOrNull(BsonDocument $self, String key)
-
getNumberAsDoubleOrNull
final static Double getNumberAsDoubleOrNull(BsonDocument $self, String key)
-
buildBsonDocument
final static BsonDocument buildBsonDocument(Function1<BsonDocument, Unit> builder)
-
putBsonDocument
final static Unit putBsonDocument(BsonDocument $self, String key, Function1<BsonDocument, Unit> builder)
-
putBsonArray
final static Unit putBsonArray(BsonDocument $self, String key, BsonArray array)
-
putBsonArray
final static Unit putBsonArray(BsonDocument $self, String key, Function1<BsonArray, Unit> builder)
-
-
-
-