JTemporal Home
Tutorial

net.sf.jtemporal
Interface TimedObject<V>

Type Parameters:
V - the type of the value
All Known Implementing Classes:
AbstractTimedObject, SimpleTimedObject

public interface TimedObject<V>

Associates an Object to a Period. The semantics of the period is free. Is immutable when the value is immutable as well.

Version:
$Id: TimedObject.java,v 1.8 2007/09/23 20:07:52 tabeck Exp $

Method Summary
 Period getPeriod()
          Must always return the same Period.
 V getValue()
          Must always return the same reference of value.
 

Method Detail

getPeriod

Period getPeriod()
Must always return the same Period.

Returns:
the period associated to the value

getValue

V getValue()
Must always return the same reference of value.

Returns:
the value

JTemporal Home
Tutorial