BsonTimestamp

public final class BsonTimestamp


Represents a BSON Timestamp type in Firestore documents.

Summary

Public fields

final long
final long

Public constructors

BsonTimestamp(long seconds, long increment)

Constructor that creates a new BSON Timestamp value with the given values.

Public methods

boolean

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

int
String

Public fields

increment

public final long increment

seconds

public final long seconds

Public constructors

BsonTimestamp

public BsonTimestamp(long seconds, long increment)

Constructor that creates a new BSON Timestamp value with the given values.

Parameters
long seconds

An unsigned 32-bit integer value stored as long representing the seconds.

long increment

An unsigned 32-bit integer value stored as long representing the increment.

Public methods

equals

public boolean equals(Object obj)

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

Parameters
Object obj

The object to compare against.

Returns
boolean

Whether this BsonTimestampValue is equal to the provided object.

hashCode

public int hashCode()

toString

public String toString()