|
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.account.AccountCollectionFactory
public final class AccountCollectionFactory
Account collection factory and utilities. This class provides methods for creating new instances of Account
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 Account 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<Account> |
EMPTY_ACCOUNTS An empty Account collection. |
Method Summary | |
---|---|
static Map<String,Account> |
accountsAsMap(Collection<Account> collection) Create a map keyed on Uuid from a collection of Account elements. |
static Set<Account> |
accountsAsSet(Collection<Account> collection) Create a set of Account elements from a collection. |
static Collection<Account> |
copyAccounts(Collection<Account> collection) Create a shallow copy of a Account collection. |
static Collection<Account> |
createAccounts(Account... elements) Create a Account collection containing zero or more elements. |
static Collection<Account> |
createAccounts(int capacity) Create an empty Account collection with a capacity specified. |
static Account |
getAccountByUuid(Collection<Account> collection, String key) Get an element from a Account collection by Uuid. |
static Collection<Account> |
unmodifiableAccounts(Collection<Account> value) Create an immutable shallow copy of a Account 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<Account> EMPTY_ACCOUNTS
Method Detail |
---|
public static Collection<Account> createAccounts(Account... elements)
elements
- The elements to add into the collection.public static Collection<Account> createAccounts(int capacity)
capacity
- The initial collection capacity.public static Collection<Account> copyAccounts(Collection<Account> collection)
collection
- The collection to copy.public static Set<Account> accountsAsSet(Collection<Account> collection)
collection
- The collection to copy.public static Collection<Account> unmodifiableAccounts(Collection<Account> value)
value
- The collection to copy.public static Map<String,Account> accountsAsMap(Collection<Account> collection)
collection
- The collection to convert to a map.public static Account getAccountByUuid(Collection<Account> collection, String 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 |