/* * Created on Dec 30, 2005 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package samplecode; /** * @author Headley Williamson * Threaded Hash * www.greattastingjava.com code licensed under http://creativecommons.org/licenses/by/2.5/ */ public class HWThread extends Thread{ boolean finished = false; Exception exception = null; Object data = null; /** * @return */ public Exception getException() { return exception; } /** * @return */ public boolean isFinished() { return finished; } /** * @param exception */ public void setException(Exception exception) { this.exception = exception; } /** * @param b */ public void setFinished(boolean b) { finished = b; } /** * @return */ public Object getData() { return data; } /** * @param object */ public void setData(Object object) { data = object; } }