|
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.TimePeriodCollectionFactory
public final class TimePeriodCollectionFactory
Time Period collection factory and utilities. This class provides methods for creating new instances of TimePeriod
collections as well as providing a number of collection based utility methods and fields. These methods are provided mainly for convenience and to provide a consistent way to create Time Period collections. Methods that take collection parameters make no assumptions about what collection implementation is used, so the use of these factory style methods is at the developers discretion.
Field Summary | |
---|---|
static Collection<TimePeriod> |
EMPTY_TIME_PERIODS An empty Time Period collection. |
Method Summary | |
---|---|
static Collection<TimePeriod> |
copyTimePeriods(Collection<TimePeriod> collection) Create a shallow copy of a Time Period collection. |
static Collection<TimePeriod> |
createTimePeriods(int capacity) Create an empty Time Period collection with a capacity specified. |
static Collection<TimePeriod> |
createTimePeriods(TimePeriod... elements) Create a Time Period collection containing zero or more elements. |
static Set<TimePeriod> |
timePeriodsAsSet(Collection<TimePeriod> collection) Create a set of Time Period elements from a collection. |
static Collection<TimePeriod> |
unmodifiableTimePeriods(Collection<TimePeriod> value) Create an immutable shallow copy of a Time Period collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Collection<TimePeriod> EMPTY_TIME_PERIODS
Method Detail |
---|
public static Collection<TimePeriod> createTimePeriods(TimePeriod... elements)
elements
- The elements to add into the collection.public static Collection<TimePeriod> createTimePeriods(int capacity)
capacity
- The initial collection capacity.public static Collection<TimePeriod> copyTimePeriods(Collection<TimePeriod> collection)
collection
- The collection to copy.public static Set<TimePeriod> timePeriodsAsSet(Collection<TimePeriod> collection)
collection
- The collection to copy.public static Collection<TimePeriod> unmodifiableTimePeriods(Collection<TimePeriod> value)
value
- The collection to copy.
|
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 |