mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 07:02:00 +02:00
Cut RegistryCursor over to global cursors
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125797729
This commit is contained in:
parent
6fa1c2d91c
commit
14522eac0c
18 changed files with 195 additions and 152 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue