Package com.google.cloud.firestore
Class Precondition
java.lang.Object
com.google.cloud.firestore.Precondition
Preconditions that can be used to restrict update() calls.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PreconditionAn empty Precondition that adds no enforcements -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this Precondition is equal to the provided object.inthashCode()static PreconditionupdatedAt(com.google.cloud.Timestamp updateTime) Creates a Precondition that enforces that the existing document was written at the specified time.
-
Field Details
-
NONE
An empty Precondition that adds no enforcements
-
-
Method Details
-
updatedAt
Creates a Precondition that enforces that the existing document was written at the specified time.- Parameters:
updateTime- The write time to enforce on the existing document.- Returns:
- A new Precondition
-
equals
Returns true if this Precondition is equal to the provided object. -
hashCode
public int hashCode()
-