Class BsonTimestamp (3.49.0)

public class BsonTimestamp implements Serializable

Represents a BSON Timestamp type in Firestore documents.

Inheritance

Object > BsonTimestamp

Implements

Serializable

Constructors

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 long

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

increment long

An 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 Object

The object to compare against.

Returns
Type Description
boolean

Whether this BsonTimestamp is equal to the provided object.

Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides