Package com.google.gerrit.server.notedb
Class ChangeNotes.Factory.ChangeNotesResult
- java.lang.Object
-
- com.google.gerrit.server.notedb.ChangeNotes.Factory.ChangeNotesResult
-
- Enclosing class:
- ChangeNotes.Factory
public abstract static class ChangeNotes.Factory.ChangeNotesResult extends Object
-
-
Constructor Summary
Constructors Constructor Description ChangeNotesResult()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Optional<Throwable>
error()
Error encountered while loading this change, if any.abstract Change.Id
id()
Change ID that was scanned.ChangeNotes
notes()
Notes loaded for this change.
-
-
-
Method Detail
-
id
public abstract Change.Id id()
Change ID that was scanned.
-
error
public abstract Optional<Throwable> error()
Error encountered while loading this change, if any.
-
notes
public ChangeNotes notes()
Notes loaded for this change.- Returns:
- notes.
- Throws:
IllegalStateException
- if there was an error loading the change; callers must check thaterror()
is absent before attempting to look up the notes.
-
-