org.omnaest.utils.threads
Class CallableDecorator<V>

java.lang.Object
  extended by 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

Field Summary
protected  Callable<V> callable
           
 
Constructor Summary
protected CallableDecorator(Callable<V> callable)
           
 
Method Summary
 V call()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

callable

protected final Callable<V> callable
Constructor Detail

CallableDecorator

protected CallableDecorator(Callable<V> callable)
Parameters:
callable -
See Also:
CallableDecorator
Method Detail

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.