public final class Precondition extends Object
Modifier and Type | Field and Description |
---|---|
static Precondition |
NONE
An empty Precondition that adds no enforcements
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if this Precondition is equal to the provided object.
|
int |
hashCode() |
static Precondition |
updatedAt(com.google.cloud.Timestamp updateTime)
Creates a Precondition that enforces that the existing document was written at the specified
time.
|
public static final Precondition NONE
@Nonnull public static Precondition updatedAt(com.google.cloud.Timestamp updateTime)
updateTime
- The write time to enforce on the existing document.public boolean equals(Object obj)
Copyright © 2023 Google LLC. All rights reserved.