|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.core.time.TimeOperationsInstance
public final class TimeOperationsInstance
Operations for manipulating and creating time based objects.
This class provides static methods for a set of procedural style methods. The methods can be made to appear as global methods by using import static. e.g.
import static oracle.irm.engine.core.time.TimeOperationsInstance.*;
Method Summary | |
---|---|
static Date |
getCurrentTime() The current time. |
static TimeRange |
getTimeRangeByInterval(Date date, TimeRange.Direction direction, TimeRange.Interval interval, int size) Create a time range using a time interval. |
static boolean |
isTimeWindowOverlapping(TimeWindow window, Collection<TimeWindow> windows) Check whether a time window overlaps other time windows. |
static Collection<TimePeriod> |
sortTimePeriods(Collection<TimePeriod> periods) Sort a set of time periods in ascending order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Date getCurrentTime()
public static boolean isTimeWindowOverlapping(TimeWindow window, Collection<TimeWindow> windows)
window
- the time window to check.windows
- the time windows to compare against. This parameter is optional, it is valid to pass null or an empty collection.public static TimeRange getTimeRangeByInterval(Date date, TimeRange.Direction direction, TimeRange.Interval interval, int size)
date
- reference date.direction
- time direction.interval
- interval.size
- interval size.public static Collection<TimePeriod> sortTimePeriods(Collection<TimePeriod> periods)
toSeconds
method.periods
- time periods to sort. This parameter is optional, it is valid to pass null or an empty collection.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |