BsonObjectId

class BsonObjectId


Represents a BSON ObjectId type in Firestore documents.

Summary

Public constructors

Constructor that creates a new BSON ObjectId value with the given value.

Public functions

Boolean
equals(obj: Any!)

Returns true if this BsonObjectId is equal to the provided object.

Int
String!

Public properties

String!

Public constructors

BsonObjectId

BsonObjectId(oid: String)

Constructor that creates a new BSON ObjectId value with the given value.

Parameters
oid: String

The 24-character hex string representing the ObjectId.

Public functions

equals

fun equals(obj: Any!): Boolean

Returns true if this BsonObjectId is equal to the provided object.

Parameters
obj: Any!

The object to compare against.

Returns
Boolean

Whether this BsonObjectId is equal to the provided object.

hashCode

fun hashCode(): Int

toString

fun toString(): String!

Public properties

value

val value: String!