mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Add create timestamp as field on AllocationToken entity
This definitely seems like a useful thing to have around. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181401799
This commit is contained in:
parent
5f62947691
commit
ccbe958063
5 changed files with 56 additions and 3 deletions
|
@ -15,6 +15,7 @@
|
|||
package google.registry.model;
|
||||
|
||||
import google.registry.model.translators.CreateAutoTimestampTranslatorFactory;
|
||||
import javax.annotation.Nullable;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/**
|
||||
|
@ -27,11 +28,12 @@ public class CreateAutoTimestamp extends ImmutableObject {
|
|||
DateTime timestamp;
|
||||
|
||||
/** Returns the timestamp. */
|
||||
@Nullable
|
||||
public DateTime getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public static CreateAutoTimestamp create(DateTime timestamp) {
|
||||
public static CreateAutoTimestamp create(@Nullable DateTime timestamp) {
|
||||
CreateAutoTimestamp instance = new CreateAutoTimestamp();
|
||||
instance.timestamp = timestamp;
|
||||
return instance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue