forked from mongodb/docs-realm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d53830d
commit 5be5172
Showing
42 changed files
with
847 additions
and
143 deletions.
There are no files selected for viewing
479 changes: 479 additions & 0 deletions
479
examples/kotlin/shared/src/commonTest/kotlin/com/mongodb/realm/realmkmmapp/DataTypes.kt
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.backlinks-embedded-object.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
val child: ParentObjectType by backlinks(ParentObjectType::embeddedChildren) |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.backlinks-realm-object.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
val child: RealmResults<ParentObjectType> by backlinks(ParentObjectType::children) |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.bool-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var boolOpt: Boolean? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.bool-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var boolReq: Boolean = false |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.byte-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var byteOpt: Byte? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.byte-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var byteReq: Byte = 0 |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.char-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var charOpt: Char? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.char-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var charReq: Char = 'a' |
2 changes: 2 additions & 0 deletions
2
source/examples/generated/kotlin/DataTypes.snippet.create-uuid.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
val uuid1 = RealmUUID.from("46423f1b-ce3e-4a7e-812f-004cf9c42d76") | ||
val uuid2 = RealmUUID.random() |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.decimal128-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var decimal128Opt: Decimal128? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.decimal128-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var decimal128Req: Decimal128 = Decimal128("123.456") |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.dictionary-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var dictionaryReq: RealmDictionary<String> = realmDictionaryOf() |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.double-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var doubleOpt: Double? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.double-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var doubleReq: Double = 0.0 |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.embedded-object-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var embeddedProperty: EmbeddedObjectType? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.float-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var floatOpt: Float? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.float-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var floatReq: Float = 0.0f |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.int-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var intOpt: Int? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.int-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var intReq: Int = 0 |
2 changes: 2 additions & 0 deletions
2
source/examples/generated/kotlin/DataTypes.snippet.list-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var listReq: RealmList<CustomObjectType> = | ||
realmListOf() |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.long-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var longOpt: Long? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.long-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var longReq: Long = 0L |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.mutableRealmInt-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var mutableRealmIntOpt: MutableRealmInt? = null |
2 changes: 2 additions & 0 deletions
2
source/examples/generated/kotlin/DataTypes.snippet.mutableRealmInt-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var mutableRealmIntReq: MutableRealmInt = | ||
MutableRealmInt.create(0) |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.objectId-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var objectIdOpt: ObjectId? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.objectId-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var objectIdReq: ObjectId = ObjectId() |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.realm-object-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var realmObjectPropertyOptional: CustomObjectType? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.realmAny-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var realmAnyOpt: RealmAny? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.realmInstant-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var realmInstantOpt: RealmInstant? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.realmInstant-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var realmInstantReq: RealmInstant = RealmInstant.now() |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.set-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var setReq: RealmSet<String> = realmSetOf() |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.short-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var shortOpt: Short? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.short-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var shortReq: Short = 0 |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.string-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var stringOpt: String? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.string-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var stringReq: String = "" |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.uuid-optional.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var uuidOpt: RealmUUID? = null |
1 change: 1 addition & 0 deletions
1
source/examples/generated/kotlin/DataTypes.snippet.uuid-required.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var uuidReq: RealmUUID = RealmUUID.random() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.