org.omnaest.utils.threads
Class RunnableDecorator

java.lang.Object
  extended by org.omnaest.utils.threads.RunnableDecorator
All Implemented Interfaces:
Serializable, Runnable

public abstract class RunnableDecorator
extends Object
implements Runnable, Serializable

Decorator for a Runnable. Please override the run() method if necessary.

Author:
Omnaest
See Also:
Serialized Form

Field Summary
protected  Runnable runnable
           
 
Constructor Summary
protected RunnableDecorator(Runnable runnable)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 void run()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

runnable

protected final Runnable runnable
Constructor Detail

RunnableDecorator

protected RunnableDecorator(Runnable runnable)
Parameters:
runnable -
See Also:
RunnableDecorator
Method Detail

toString

public String toString()
Overrides:
toString in class Object

run

public void run()
Specified by:
run in interface Runnable

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.