public class StoredObjectRepresentation extends Object
PackWriter can consider for packing.| Modifier and Type | Field and Description |
|---|---|
static int |
FORMAT_OTHER
Only available after inflating to canonical format.
|
static int |
PACK_DELTA
Stored in pack format, as a delta to another object.
|
static int |
PACK_WHOLE
Stored in pack format, without delta.
|
static int |
WEIGHT_UNKNOWN
Special unknown value for
getWeight(). |
| Constructor and Description |
|---|
StoredObjectRepresentation() |
public static final int WEIGHT_UNKNOWN
getWeight().public static final int PACK_DELTA
public static final int PACK_WHOLE
public static final int FORMAT_OTHER
public int getWeight()
WEIGHT_UNKNOWN can be returned to indicate the
implementation doesn't know, or cannot supply the weight up
front.public int getFormat()
PACK_DELTA, PACK_WHOLE, or
FORMAT_OTHER.public ObjectId getDeltaBase()
getFormat() returned PACK_DELTA.public boolean wasDeltaAttempted()
Copyright © 2014. All rights reserved.