public class AmbiguousObjectException
extends java.io.IOException
AbbreviatedObjectId
cannot be extended.Modifier and Type | Field and Description |
---|---|
private java.util.Collection<ObjectId> |
candidates |
private AbbreviatedObjectId |
missing |
private static long |
serialVersionUID |
Constructor and Description |
---|
AmbiguousObjectException(AbbreviatedObjectId id,
java.util.Collection<ObjectId> candidates)
Construct a MissingObjectException for the specified object id.
|
Modifier and Type | Method and Description |
---|---|
AbbreviatedObjectId |
getAbbreviatedObjectId()
Get the
AbbreviatedObjectId that has more than one result |
java.util.Collection<ObjectId> |
getCandidates()
Get the matching candidates (or at least a subset of them)
|
private static final long serialVersionUID
private final AbbreviatedObjectId missing
private final java.util.Collection<ObjectId> candidates
public AmbiguousObjectException(AbbreviatedObjectId id, java.util.Collection<ObjectId> candidates)
id
- SHA-1candidates
- the candidate matches returned by the ObjectReader.public AbbreviatedObjectId getAbbreviatedObjectId()
AbbreviatedObjectId
that has more than one resultAbbreviatedObjectId
that has more than one resultpublic java.util.Collection<ObjectId> getCandidates()