All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.darwinsys.diff.DiffChunk Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
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;
	}
} 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy