Class RefDirectory.LooseUnpeeled
- java.lang.Object
-
- org.eclipse.jgit.lib.ObjectIdRef
-
- org.eclipse.jgit.lib.ObjectIdRef.Unpeeled
-
- org.eclipse.jgit.internal.storage.file.RefDirectory.LooseUnpeeled
-
- All Implemented Interfaces:
RefDirectory.LooseRef
,Ref
- Enclosing class:
- RefDirectory
private static final class RefDirectory.LooseUnpeeled extends ObjectIdRef.Unpeeled implements RefDirectory.LooseRef
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.lib.ObjectIdRef
ObjectIdRef.PeeledNonTag, ObjectIdRef.PeeledTag, ObjectIdRef.Unpeeled
-
Nested classes/interfaces inherited from interface org.eclipse.jgit.lib.Ref
Ref.Storage
-
-
Field Summary
Fields Modifier and Type Field Description private FileSnapshot
snapShot
-
Fields inherited from interface org.eclipse.jgit.lib.Ref
UNDEFINED_UPDATE_INDEX
-
-
Constructor Summary
Constructors Constructor Description LooseUnpeeled(FileSnapshot snapShot, java.lang.String refName, ObjectId id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectId
getObjectId()
Cached value of this ref.FileSnapshot
getSnapShot()
RefDirectory.LooseRef
peel(ObjectIdRef newLeaf)
-
Methods inherited from class org.eclipse.jgit.lib.ObjectIdRef.Unpeeled
getPeeledObjectId, isPeeled
-
Methods inherited from class org.eclipse.jgit.lib.ObjectIdRef
getLeaf, getName, getStorage, getTarget, getUpdateIndex, isSymbolic, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jgit.lib.Ref
getLeaf, getName, getPeeledObjectId, getStorage, getTarget, getUpdateIndex, isPeeled, isSymbolic
-
-
-
-
Field Detail
-
snapShot
private FileSnapshot snapShot
-
-
Constructor Detail
-
LooseUnpeeled
LooseUnpeeled(FileSnapshot snapShot, @NonNull java.lang.String refName, @NonNull ObjectId id)
-
-
Method Detail
-
getSnapShot
public FileSnapshot getSnapShot()
- Specified by:
getSnapShot
in interfaceRefDirectory.LooseRef
-
getObjectId
@NonNull public ObjectId getObjectId()
Description copied from class:ObjectIdRef
Cached value of this ref.- Specified by:
getObjectId
in interfaceRef
- Overrides:
getObjectId
in classObjectIdRef
- Returns:
- the value of this ref at the last time we read it. May be
null
to indicate a ref that does not exist yet or a symbolic ref pointing to an unborn branch.
-
peel
public RefDirectory.LooseRef peel(ObjectIdRef newLeaf)
- Specified by:
peel
in interfaceRefDirectory.LooseRef
-
-