public class BsonObjectId implements SerializableRepresents a BSON ObjectId type in Firestore documents.
Implements
SerializableConstructors
BsonObjectId(String oid)
public BsonObjectId(String oid)Constructor that creates a new BSON ObjectId value with the given value.
| Parameter | |
|---|---|
| Name | Description |
oid |
StringThe 24-character hex string representing the ObjectId. |
Fields
value
public final String value| Field Value | |
|---|---|
| Type | Description |
String |
|
Methods
equals(Object obj)
public boolean equals(Object obj)Returns true if this BsonObjectId is equal to the provided object.
| Parameter | |
|---|---|
| Name | Description |
obj |
ObjectThe object to compare against. |
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether this BsonObjectId is equal to the provided object. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
toString()
public String toString()| Returns | |
|---|---|
| Type | Description |
String |
|