what-the-bank/sources/com/google/firebase/firestore/model/mutation/ServerTimestampOperation.java

33 lines
1.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.firestore.model.mutation;
import com.google.firebase.Timestamp;
import com.google.firebase.firestore.model.ServerTimestamps;
import o.sbb;
/* loaded from: classes2.dex */
public class ServerTimestampOperation implements TransformOperation {
private static final ServerTimestampOperation SHARED_INSTANCE = new ServerTimestampOperation();
@Override // com.google.firebase.firestore.model.mutation.TransformOperation
public sbb applyToRemoteDocument(sbb sbbVar, sbb sbbVar2) {
return sbbVar2;
}
@Override // com.google.firebase.firestore.model.mutation.TransformOperation
public sbb computeBaseValue(sbb sbbVar) {
return null;
}
private ServerTimestampOperation() {
}
@Override // com.google.firebase.firestore.model.mutation.TransformOperation
public sbb applyToLocalView(sbb sbbVar, Timestamp timestamp) {
return ServerTimestamps.valueOf(timestamp, sbbVar);
}
public static ServerTimestampOperation getInstance() {
return SHARED_INSTANCE;
}
}