|
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.rights.context.DomainCollectionFactory
public final class DomainCollectionFactory
Domain collection factory and utilities. This class provides methods for creating new instances of Domain
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 Domain 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<Domain> |
EMPTY_DOMAINS An empty Domain collection. |
Method Summary | |
---|---|
static Collection<Domain> |
copyDomains(Collection<Domain> collection) Create a shallow copy of a Domain collection. |
static Collection<Domain> |
createDomains(Domain... elements) Create a Domain collection containing zero or more elements. |
static Collection<Domain> |
createDomains(int capacity) Create an empty Domain collection with a capacity specified. |
static Map<UUID,Domain> |
domainsAsMap(Collection<Domain> collection) Create a map keyed on Uuid from a collection of Domain elements. |
static Set<Domain> |
domainsAsSet(Collection<Domain> collection) Create a set of Domain elements from a collection. |
static Domain |
getDomainByUuid(Collection<Domain> collection, UUID key) Get an element from a Domain collection by Uuid. |
static Collection<Domain> |
unmodifiableDomains(Collection<Domain> value) Create an immutable shallow copy of a Domain 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<Domain> EMPTY_DOMAINS
Method Detail |
---|
public static Collection<Domain> createDomains(Domain... elements)
elements
- The elements to add into the collection.public static Collection<Domain> createDomains(int capacity)
capacity
- The initial collection capacity.public static Collection<Domain> copyDomains(Collection<Domain> collection)
collection
- The collection to copy.public static Set<Domain> domainsAsSet(Collection<Domain> collection)
collection
- The collection to copy.public static Collection<Domain> unmodifiableDomains(Collection<Domain> value)
value
- The collection to copy.public static Map<UUID,Domain> domainsAsMap(Collection<Domain> collection)
collection
- The collection to convert to a map.public static Domain getDomainByUuid(Collection<Domain> 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 |