org.epics.pvmanager
Class TimeSupport<T>

java.lang.Object
  extended by org.epics.pvmanager.TypeSupport<T>
      extended by org.epics.pvmanager.TimeSupport<T>
Type Parameters:
T - type for which to add time support

Deprecated. generic type support is being removed: was too intrusive and little used. being replaced by used of generic function that expect T extends Time.

@Deprecated
public abstract class TimeSupport<T>
extends TypeSupport<T>

Strategy class that extract time information from a given type.

Author:
carcassi

Constructor Summary
TimeSupport(java.lang.Class<T> clazz)
          Deprecated. Creates a new support for extracting time information from the given class.
 
Method Summary
protected abstract  TimeStamp extractTimestamp(T object)
          Deprecated. Extracts the time information from the given object.
static
<T> TimeStamp
timestampOf(T value)
          Deprecated. Extracts the TimeStamp of the value using the appropriate type support.
static
<T> Timestamp
toTimestamp(T value)
          Deprecated. Extracts the TimeStamp of the value using the appropriate type support.
 
Methods inherited from class org.epics.pvmanager.TypeSupport
addTypeSupport, findTypeSupportFor, getType, getTypeSupportFamily, isTypeDirectlySupported, isTypeSupported, typeSupportsFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSupport

public TimeSupport(java.lang.Class<T> clazz)
Deprecated. 
Creates a new support for extracting time information from the given class.

Parameters:
clazz - the type on which to add support
Method Detail

timestampOf

public static <T> TimeStamp timestampOf(T value)
Deprecated. 
Extracts the TimeStamp of the value using the appropriate type support.

Type Parameters:
T - the type of the value
Parameters:
value - the value from which to extract the timestamp
Returns:
the extracted timestamp

toTimestamp

public static <T> Timestamp toTimestamp(T value)
Deprecated. 
Extracts the TimeStamp of the value using the appropriate type support.

Type Parameters:
T - the type of the value
Parameters:
value - the value from which to extract the timestamp
Returns:
the extracted timestamp

extractTimestamp

protected abstract TimeStamp extractTimestamp(T object)
Deprecated. 
Extracts the time information from the given object.

Parameters:
object - object on which to extract time
Returns:
the time of the object or null if not available