rcf.core.concurrent.schedule
Class TaskStateAdapter<T extends Task>

java.lang.Object
  extended by rcf.core.util.adapter.AbstractTypeAdapter<T,Task.State>
      extended by rcf.core.concurrent.schedule.TaskStateAdapter<T>
All Implemented Interfaces:
rcf.core.util.adapter.TypeAdapter<T,Task.State>, rcf.core.util.adapter.TypeAdapterA<T,Task.State>, rcf.core.util.adapter.TypeAdapterB<T,Task.State>

@Revision(value="$Revision: 1.5 $",
          date="$Date: 2006/11/23 23:07:31 $",
          tag="$Name:  $")
public class TaskStateAdapter<T extends Task>
extends rcf.core.util.adapter.AbstractTypeAdapter<T,Task.State>

TODO: Javadoc

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString

Version:
$Revision: 1.5 $
Author:
Greg Gibeling

Field Summary
private static SoftReference<TaskStateAdapter> singleton
          TODO: Javadoc The singleton instance of this class.
 
Fields inherited from class rcf.core.util.adapter.AbstractTypeAdapter
adapterInverse
 
Constructor Summary
private TaskStateAdapter()
          TODO: Javadoc Default constructor, private to enforce singleton instantiation.
 
Method Summary
 TaskStateAdapter<T> copy()
           
 boolean equals(Object o)
           
static
<T extends Task>
TaskStateAdapter<T>
getTaskStateAdapter()
          TODO: Javadoc Get the singleton instance of this class.
 int hashCode()
           
 Task.State mapA(T a)
           
 T mapB(Task.State b)
           
 String toString()
           
 
Methods inherited from class rcf.core.util.adapter.AbstractTypeAdapter
typeAdapterInverse
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

singleton

private static SoftReference<TaskStateAdapter> singleton
TODO: Javadoc The singleton instance of this class.

Constructor Detail

TaskStateAdapter

private TaskStateAdapter()
TODO: Javadoc Default constructor, private to enforce singleton instantiation.

See Also:
getTaskStateAdapter()
Method Detail

getTaskStateAdapter

public static final <T extends Task> TaskStateAdapter<T> getTaskStateAdapter()
TODO: Javadoc Get the singleton instance of this class.

Returns:
The singleton instance of this class.

copy

public TaskStateAdapter<T> copy()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

mapA

public Task.State mapA(T a)

mapB

public T mapB(Task.State b)