|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.core.device.DeviceCollectionFactory
public final class DeviceCollectionFactory
Device collection factory and utilities. This class provides methods for creating new instances of Device
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 Device 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<Device> |
EMPTY_DEVICES An empty Device collection. |
Method Summary | |
---|---|
static Collection<Device> |
copyDevices(Collection<Device> collection) Create a shallow copy of a Device collection. |
static Collection<Device> |
createDevices(Device... elements) Create a Device collection containing zero or more elements. |
static Collection<Device> |
createDevices(int capacity) Create an empty Device collection with a capacity specified. |
static Map<UUID,Device> |
devicesAsMap(Collection<Device> collection) Create a map keyed on Uuid from a collection of Device elements. |
static Set<Device> |
devicesAsSet(Collection<Device> collection) Create a set of Device elements from a collection. |
static Device |
getDeviceByUuid(Collection<Device> collection, UUID key) Get an element from a Device collection by Uuid. |
static Collection<Device> |
unmodifiableDevices(Collection<Device> value) Create an immutable shallow copy of a Device 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<Device> EMPTY_DEVICES
Method Detail |
---|
public static Collection<Device> createDevices(Device... elements)
elements
- The elements to add into the collection.public static Collection<Device> createDevices(int capacity)
capacity
- The initial collection capacity.public static Collection<Device> copyDevices(Collection<Device> collection)
collection
- The collection to copy.public static Set<Device> devicesAsSet(Collection<Device> collection)
collection
- The collection to copy.public static Collection<Device> unmodifiableDevices(Collection<Device> value)
value
- The collection to copy.public static Map<UUID,Device> devicesAsMap(Collection<Device> collection)
collection
- The collection to convert to a map.public static Device getDeviceByUuid(Collection<Device> collection, UUID key)
collection
- The collection.key
- The key.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |