org.omnaest.utils.threads
Class CallableDecorator<V>
java.lang.Object
org.omnaest.utils.threads.CallableDecorator<V>
- Type Parameters:
V -
- All Implemented Interfaces:
- Serializable, Callable<V>
public abstract class CallableDecorator<V>
- extends Object
- implements Callable<V>, Serializable
Decorator for a Callable. Please override the call() method if necessary.
- Author:
- Omnaest
- See Also:
- Serialized Form
callable
protected final Callable<V> callable
CallableDecorator
protected CallableDecorator(Callable<V> callable)
- Parameters:
callable - - See Also:
CallableDecorator
call
public V call()
throws Exception
- Specified by:
call in interface Callable<V>
- Throws:
Exception
toString
public String toString()
- Overrides:
toString in class Object
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.