|
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.content.key.KeySetCollectionFactory
public final class KeySetCollectionFactory
Key Set collection factory and utilities. This class provides methods for creating new instances of KeySet
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 Key Set 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<KeySet> |
EMPTY_KEY_SETS An empty Key Set collection. |
Method Summary | |
---|---|
static Collection<KeySet> |
copyKeySets(Collection<KeySet> collection) Create a shallow copy of a Key Set collection. |
static Collection<KeySet> |
createKeySets(int capacity) Create an empty Key Set collection with a capacity specified. |
static Collection<KeySet> |
createKeySets(KeySet... elements) Create a Key Set collection containing zero or more elements. |
static KeySet |
getKeySetByUuid(Collection<KeySet> collection, UUID key) Get an element from a Key Set collection by Uuid. |
static Map<UUID,KeySet> |
keySetsAsMap(Collection<KeySet> collection) Create a map keyed on Uuid from a collection of Key Set elements. |
static Set<KeySet> |
keySetsAsSet(Collection<KeySet> collection) Create a set of Key Set elements from a collection. |
static Collection<KeySet> |
unmodifiableKeySets(Collection<KeySet> value) Create an immutable shallow copy of a Key Set 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<KeySet> EMPTY_KEY_SETS
Method Detail |
---|
public static Collection<KeySet> createKeySets(KeySet... elements)
elements
- The elements to add into the collection.public static Collection<KeySet> createKeySets(int capacity)
capacity
- The initial collection capacity.public static Collection<KeySet> copyKeySets(Collection<KeySet> collection)
collection
- The collection to copy.public static Set<KeySet> keySetsAsSet(Collection<KeySet> collection)
collection
- The collection to copy.public static Collection<KeySet> unmodifiableKeySets(Collection<KeySet> value)
value
- The collection to copy.public static Map<UUID,KeySet> keySetsAsMap(Collection<KeySet> collection)
collection
- The collection to convert to a map.public static KeySet getKeySetByUuid(Collection<KeySet> 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 |