Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.core.time
Class AbsoluteTimeSpanFactory

java.lang.Object
  extended by oracle.irm.engine.core.time.AbsoluteTimeSpanFactory


public final class AbsoluteTimeSpanFactory
extends Object

Absolute Time Span factory. This class provides methods for creating new instances of AbsoluteTimeSpan objects.


Method Summary
static AbsoluteTimeSpan createAbsoluteTimeSpan(Date startTime, Date stopTime)
          Create an absolute time span for a specified start and stop time.
static AbsoluteTimeSpan createAbsoluteTimeSpan(TimeSpan.ReferencePoint referencePoint, Date startTime, Date stopTime)
          Create an absolute time span for a specified start and stop time.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

createAbsoluteTimeSpan

public static AbsoluteTimeSpan createAbsoluteTimeSpan(Date startTime,
                                                      Date stopTime)
Create an absolute time span for a specified start and stop time. Either a start time or stop time must be provided (or both).
Parameters:
startTime - absolute start time. e.g. 17 August 2007 10:34. This parameter is optional, it is valid to pass null.
stopTime - absolute stop time. e.g. 23 November 2008 14:45. This parameter is optional, it is valid to pass null.
Returns:
a new Absolute Time Span instance.

createAbsoluteTimeSpan

public static AbsoluteTimeSpan createAbsoluteTimeSpan(TimeSpan.ReferencePoint referencePoint,
                                                      Date startTime,
                                                      Date stopTime)
Create an absolute time span for a specified start and stop time. Either a start time or stop time must be provided (or both).
Parameters:
referencePoint - time reference point. e.g. compare against current time.
startTime - absolute start time. e.g. 17 August 2007 10:34. This parameter is optional, it is valid to pass null.
stopTime - absolute stop time. e.g. 23 November 2008 14:45. This parameter is optional, it is valid to pass null.
Returns:
a new Absolute Time Span instance.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.