Package com.google.gerrit.server.notedb
Class IntBlob
- java.lang.Object
-
- com.google.gerrit.server.notedb.IntBlob
-
public abstract class IntBlob extends Object
An object blob in a Git repository that stores a single integer value.
-
-
Constructor Summary
Constructors Constructor Description IntBlob()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.eclipse.jgit.lib.ObjectId
id()
static Optional<IntBlob>
parse(org.eclipse.jgit.lib.Repository repo, String refName)
static Optional<IntBlob>
parse(org.eclipse.jgit.lib.Repository repo, String refName, org.eclipse.jgit.revwalk.RevWalk rw)
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()
-
-
-
Method Detail
-
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()
-
-