Package com.google.gerrit.index
Class RefState
- java.lang.Object
-
- com.google.gerrit.index.RefState
-
public abstract class RefState extends Object
-
-
Constructor Summary
Constructors Constructor Description RefState()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static void
check(boolean condition, String str)
static RefState
create(String ref, String sha)
static RefState
create(String ref, org.eclipse.jgit.lib.ObjectId id)
abstract org.eclipse.jgit.lib.ObjectId
id()
boolean
match(org.eclipse.jgit.lib.Repository repo)
static RefState
of(org.eclipse.jgit.lib.Ref ref)
static com.google.common.collect.SetMultimap<Project.NameKey,RefState>
parseStates(Iterable<byte[]> states)
abstract String
ref()
byte[]
toByteArray(Project.NameKey project)
-
-
-
Method Detail
-
parseStates
public static com.google.common.collect.SetMultimap<Project.NameKey,RefState> parseStates(Iterable<byte[]> states)
-
of
public static RefState of(org.eclipse.jgit.lib.Ref ref)
-
toByteArray
public byte[] toByteArray(Project.NameKey project)
-
check
public static void check(boolean condition, String str)
-
ref
public abstract String ref()
-
id
public abstract org.eclipse.jgit.lib.ObjectId id()
-
match
public boolean match(org.eclipse.jgit.lib.Repository repo) throws IOException
- Throws:
IOException
-
-