|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.storage.dht.ObjectInfo
public class ObjectInfo
Connects an object to the chunk it is stored in.
Field Summary | |
---|---|
static java.util.Comparator<ObjectInfo> |
BY_TIME
Orders ObjectInfo by their time member, oldest first. |
Constructor Summary | |
---|---|
ObjectInfo(ChunkKey chunkKey,
GitStore.ObjectInfo data)
Wrap an ObjectInfo from the storage system. |
|
ObjectInfo(ChunkKey chunkKey,
long time,
GitStore.ObjectInfo data)
Wrap an ObjectInfo from the storage system. |
Method Summary | |
---|---|
ChunkKey |
getChunkKey()
|
GitStore.ObjectInfo |
getData()
|
long |
getSize()
|
long |
getTime()
|
int |
getType()
|
boolean |
isDelta()
|
boolean |
isFragmented()
|
static void |
sort(java.util.List<ObjectInfo> toSort)
Sort the info list according to time, oldest member first. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.util.Comparator<ObjectInfo> BY_TIME
Constructor Detail |
---|
public ObjectInfo(ChunkKey chunkKey, GitStore.ObjectInfo data)
chunkKey
- the chunk the object points to.data
- the data of the ObjectInfo.public ObjectInfo(ChunkKey chunkKey, long time, GitStore.ObjectInfo data)
chunkKey
- the chunk the object points to.time
- timestamp of the ObjectInfo.data
- the data of the ObjectInfo.Method Detail |
---|
public static void sort(java.util.List<ObjectInfo> toSort)
toSort
- list to sort.public ChunkKey getChunkKey()
public long getTime()
public GitStore.ObjectInfo getData()
public int getType()
public long getSize()
public boolean isDelta()
public boolean isFragmented()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |