ModificationResultpublic final class ModificationResult extends Object Structure to tell the differences occurred by altering a chunk. |
Fields Summary |
---|
private final long | byteDifferenceStores the difference of bytes.
| private final int | chunkDifferenceStores 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 final Set | occuredGUIDsStores all GUIDs, which have been read.
|
Constructors Summary |
---|
public ModificationResult(int chunkCountDiff, long bytesDiffer, org.jaudiotagger.audio.asf.data.GUID occurred)Creates an instance.
assert occurred != null && occurred.length > 0;
this.chunkDifference = chunkCountDiff;
this.byteDifference = bytesDiffer;
this.occuredGUIDs.addAll(Arrays.asList(occurred));
| public ModificationResult(int chunkCountDiff, long bytesDiffer, Set occurred)Creates an instance.
this.chunkDifference = chunkCountDiff;
this.byteDifference = bytesDiffer;
this.occuredGUIDs.addAll(occurred);
|
Methods Summary |
---|
public long | getByteDifference()Returns the difference of bytes.
return this.byteDifference;
| public int | getChunkCountDifference()Returns the difference of the amount of chunks.
return this.chunkDifference;
| public java.util.Set | getOccuredGUIDs()Returns all GUIDs which have been occurred during processing.
return new HashSet<GUID>(this.occuredGUIDs);
|
|