org.openmdx.base.time
Class Duration

java.lang.Object
  extended by org.openmdx.base.time.Duration

Deprecated.

public final class Duration
extends Object

A duration is specified in either months or seconds.


Constructor Summary
Duration(int months)
          Deprecated. Create a duration specfied by a specific number of months
Duration(long milliseconds)
          Deprecated. Create a duration specfied by a specific number of milliseconds
Duration(String value)
          Deprecated. Create a duration of time from two of the basic formats defined by the ISO 8601 standard.
 
Method Summary
 boolean equals(Object object)
          Deprecated.  
 long getMilliseconds()
          Deprecated.  
 long getMonths()
          Deprecated.  
 int hashCode()
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Duration

public Duration(String value)
         throws ServiceException
Deprecated. 
Create a duration of time from two of the basic formats defined by the ISO 8601 standard.

Throws:
ServiceException

Duration

public Duration(int months)
Deprecated. 
Create a duration specfied by a specific number of months

Parameters:
months - The duration expressed in months

Duration

public Duration(long milliseconds)
Deprecated. 
Create a duration specfied by a specific number of milliseconds

Parameters:
milliseconds - The duration expressed in milliseconds
Method Detail

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Deprecated. 
Overrides:
equals in class Object

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

getMilliseconds

public long getMilliseconds()
Deprecated. 

getMonths

public long getMonths()
Deprecated. 


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.