private static final class RefDirectory.LooseUnpeeled extends ObjectIdRef.Unpeeled implements RefDirectory.LooseRef
ObjectIdRef.PeeledNonTag, ObjectIdRef.PeeledTag, ObjectIdRef.Unpeeled
Ref.Storage
Modifier and Type | Field and Description |
---|---|
private FileSnapshot |
snapShot |
UNDEFINED_UPDATE_INDEX
Constructor and Description |
---|
LooseUnpeeled(FileSnapshot snapShot,
java.lang.String refName,
ObjectId id) |
Modifier and Type | Method and Description |
---|---|
ObjectId |
getObjectId()
Cached value of this ref.
|
FileSnapshot |
getSnapShot() |
RefDirectory.LooseRef |
peel(ObjectIdRef newLeaf) |
getPeeledObjectId, isPeeled
getLeaf, getName, getStorage, getTarget, getUpdateIndex, isSymbolic, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLeaf, getName, getPeeledObjectId, getStorage, getTarget, getUpdateIndex, isPeeled, isSymbolic
private FileSnapshot snapShot
LooseUnpeeled(FileSnapshot snapShot, @NonNull java.lang.String refName, @NonNull ObjectId id)
public FileSnapshot getSnapShot()
getSnapShot
in interface RefDirectory.LooseRef
@NonNull public ObjectId getObjectId()
ObjectIdRef
getObjectId
in interface Ref
getObjectId
in class ObjectIdRef
null
to indicate a ref that does not exist yet or a
symbolic ref pointing to an unborn branch.public RefDirectory.LooseRef peel(ObjectIdRef newLeaf)
peel
in interface RefDirectory.LooseRef