public class BsonTimestamp implements SerializableRepresents a BSON Timestamp type in Firestore documents.
Implements
SerializableConstructors
BsonTimestamp(long seconds, long increment)
public BsonTimestamp(long seconds, long increment)Constructor that creates a new BSON Timestamp value with the given values.
| Parameters | |
|---|---|
| Name | Description |
seconds |
longAn unsigned 32-bit integer value stored as long representing the seconds. |
increment |
longAn unsigned 32-bit integer value stored as long representing the increment. |
Fields
increment
public final long increment| Field Value | |
|---|---|
| Type | Description |
long |
|
seconds
public final long seconds| Field Value | |
|---|---|
| Type | Description |
long |
|
Methods
equals(Object obj)
public boolean equals(Object obj)Returns true if this BsonTimestamp is equal to the provided object.
| Parameter | |
|---|---|
| Name | Description |
obj |
ObjectThe object to compare against. |
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether this BsonTimestamp is equal to the provided object. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
toString()
public String toString()| Returns | |
|---|---|
| Type | Description |
String |
|