com.darwinsys.diff.DiffChunk Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of darwinsys-api Show documentation
Show all versions of darwinsys-api Show documentation
Ian Darwin's assorted Java stuff,
assembled as an API.
package com.darwinsys.diff;
public class DiffChunk {
private DiffType type;
private T data;
/**
* Construct a DiffChunk
* @param data The data
* @param type The type
*/
public DiffChunk(T data, DiffType type) {
super();
this.data = data;
this.type = type;
}
/** Get the data in a chunk.
* @return The data.
*/
public T getData() {
return data;
}
/** Get the type of data in a chunk.
* @return The type.
*/
public DiffType getType() {
return type;
}
}