public static final class ContentSource.Pair
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ContentSource |
newSource |
private ContentSource |
oldSource |
Constructor and Description |
---|
Pair(ContentSource oldSource,
ContentSource newSource)
Construct a pair of sources.
|
Modifier and Type | Method and Description |
---|---|
ObjectLoader |
open(DiffEntry.Side side,
DiffEntry ent)
Open the object.
|
long |
size(DiffEntry.Side side,
DiffEntry ent)
Determine the size of the object.
|
private final ContentSource oldSource
private final ContentSource newSource
public Pair(ContentSource oldSource, ContentSource newSource)
oldSource
- source to read the old side of a DiffEntry.newSource
- source to read the new side of a DiffEntry.public long size(DiffEntry.Side side, DiffEntry ent) throws java.io.IOException
side
- which side of the entry to read (OLD or NEW).ent
- the entry to examine.java.io.IOException
- the file cannot be accessed.public ObjectLoader open(DiffEntry.Side side, DiffEntry ent) throws java.io.IOException
side
- which side of the entry to read (OLD or NEW).ent
- the entry to examine.java.io.IOException
- the file cannot be accessed.