Package com.google.gerrit.server.notedb
Class IntBlob
java.lang.Object
com.google.gerrit.server.notedb.IntBlob
An object blob in a Git repository that stores a single integer value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.eclipse.jgit.lib.ObjectId
id()
static void
store
(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevWalk rw, Project.NameKey projectName, String refName, org.eclipse.jgit.lib.ObjectId oldId, int val, GitReferenceUpdated gitRefUpdated) static org.eclipse.jgit.lib.RefUpdate
tryStore
(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevWalk rw, Project.NameKey projectName, String refName, org.eclipse.jgit.lib.ObjectId oldId, int val, GitReferenceUpdated gitRefUpdated) abstract int
value()
-
Constructor Details
-
IntBlob
public IntBlob()
-
-
Method Details
-
parse
public static Optional<IntBlob> parse(org.eclipse.jgit.lib.Repository repo, String refName) throws IOException - Throws:
IOException
-
parse
public static Optional<IntBlob> parse(org.eclipse.jgit.lib.Repository repo, String refName, org.eclipse.jgit.revwalk.RevWalk rw) throws IOException - Throws:
IOException
-
tryStore
public static org.eclipse.jgit.lib.RefUpdate tryStore(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevWalk rw, Project.NameKey projectName, String refName, org.eclipse.jgit.lib.ObjectId oldId, int val, GitReferenceUpdated gitRefUpdated) throws IOException - Throws:
IOException
-
store
public static void store(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevWalk rw, Project.NameKey projectName, String refName, org.eclipse.jgit.lib.ObjectId oldId, int val, GitReferenceUpdated gitRefUpdated) throws IOException - Throws:
IOException
-
id
public abstract org.eclipse.jgit.lib.ObjectId id() -
value
public abstract int value()
-