mirror of
https://github.com/google/nomulus
synced 2026-01-07 22:15:30 +00:00
Cut RegistryCursor over to global cursors
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125797729
This commit is contained in:
@@ -161,6 +161,13 @@ public class Cursor extends ImmutableObject {
|
||||
return create(cursorType, cursorTime, Key.create(scope));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current time for a given cursor, or {@code START_OF_TIME} if the cursor is null.
|
||||
*/
|
||||
public static DateTime getCursorTimeOrStartOfTime(Cursor cursor) {
|
||||
return cursor != null ? cursor.getCursorTime() : START_OF_TIME;
|
||||
}
|
||||
|
||||
public DateTime getCursorTime() {
|
||||
return cursorTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user