|
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.classifications.context.ContextCollectionFactory
public final class ContextCollectionFactory
Context collection factory and utilities. This class provides methods for creating new instances of Context
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 Context 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<Context> |
EMPTY_CONTEXTS An empty Context collection. |
Method Summary | |
---|---|
static Map<UUID,Context> |
contextsAsMap(Collection<Context> collection) Create a map keyed on Uuid from a collection of Context elements. |
static Set<Context> |
contextsAsSet(Collection<Context> collection) Create a set of Context elements from a collection. |
static Collection<Context> |
copyContexts(Collection<Context> collection) Create a shallow copy of a Context collection. |
static Collection<Context> |
createContexts(Context... elements) Create a Context collection containing zero or more elements. |
static Collection<Context> |
createContexts(int capacity) Create an empty Context collection with a capacity specified. |
static Context |
getContextByUuid(Collection<Context> collection, UUID key) Get an element from a Context collection by Uuid. |
static Collection<Context> |
unmodifiableContexts(Collection<Context> value) Create an immutable shallow copy of a Context 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<Context> EMPTY_CONTEXTS
Method Detail |
---|
public static Collection<Context> createContexts(Context... elements)
elements
- The elements to add into the collection.public static Collection<Context> createContexts(int capacity)
capacity
- The initial collection capacity.public static Collection<Context> copyContexts(Collection<Context> collection)
collection
- The collection to copy.public static Set<Context> contextsAsSet(Collection<Context> collection)
collection
- The collection to copy.public static Collection<Context> unmodifiableContexts(Collection<Context> value)
value
- The collection to copy.public static Map<UUID,Context> contextsAsMap(Collection<Context> collection)
collection
- The collection to convert to a map.public static Context getContextByUuid(Collection<Context> collection, UUID key)
collection
- The collection.key
- The key.
|
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 |