final class ModificationResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
byteDifference
Stores the difference of bytes.
|
private int |
chunkDifference
Stores the difference of the amount of chunks.
"-1" if the chunk disappeared upon modification. "0" if the chunk was just modified. "1" if a chunk has been created. |
private java.util.Set<GUID> |
occuredGUIDs
Stores all GUIDs, which have been read.
|
Constructor and Description |
---|
ModificationResult(int chunkCountDiff,
long bytesDiffer,
GUID... occurred)
Creates an instance.
|
ModificationResult(int chunkCountDiff,
long bytesDiffer,
java.util.Set<GUID> occurred)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getByteDifference()
Returns the difference of bytes.
|
int |
getChunkCountDifference()
Returns the difference of the amount of chunks.
|
java.util.Set<GUID> |
getOccuredGUIDs()
Returns all GUIDs which have been occurred during processing.
|
private final long byteDifference
private final int chunkDifference
private final java.util.Set<GUID> occuredGUIDs
public ModificationResult(int chunkCountDiff, long bytesDiffer, GUID... occurred)
chunkCountDiff
- amount of chunks appeared, disappearedbytesDiffer
- amount of bytes added or removed.occurred
- all GUIDs which have been occurred, during processingpublic ModificationResult(int chunkCountDiff, long bytesDiffer, java.util.Set<GUID> occurred)
chunkCountDiff
- amount of chunks appeared, disappearedbytesDiffer
- amount of bytes added or removed.occurred
- all GUIDs which have been occurred, during processingpublic long getByteDifference()
public int getChunkCountDifference()
public java.util.Set<GUID> getOccuredGUIDs()
Copyright © 2005-2013 java.net. All Rights Reserved.