|
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.feature.FeatureCollectionFactory
public final class FeatureCollectionFactory
Feature collection factory and utilities. This class provides methods for creating new instances of Feature
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 Feature 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<Feature> |
EMPTY_FEATURES An empty Feature collection. |
Method Summary | |
---|---|
static Collection<Feature> |
copyFeatures(Collection<Feature> collection) Create a shallow copy of a Feature collection. |
static Collection<Feature> |
createFeatures(Feature... elements) Create a Feature collection containing zero or more elements. |
static Collection<Feature> |
createFeatures(int capacity) Create an empty Feature collection with a capacity specified. |
static Map<String,Feature> |
featuresAsMap(Collection<Feature> collection) Create a map keyed on Id from a collection of Feature elements. |
static Set<Feature> |
featuresAsSet(Collection<Feature> collection) Create a set of Feature elements from a collection. |
static Feature |
getFeatureById(Collection<Feature> collection, String key) Get an element from a Feature collection by Id. |
static Collection<Feature> |
unmodifiableFeatures(Collection<Feature> value) Create an immutable shallow copy of a Feature 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<Feature> EMPTY_FEATURES
Method Detail |
---|
public static Collection<Feature> createFeatures(Feature... elements)
elements
- The elements to add into the collection.public static Collection<Feature> createFeatures(int capacity)
capacity
- The initial collection capacity.public static Collection<Feature> copyFeatures(Collection<Feature> collection)
collection
- The collection to copy.public static Set<Feature> featuresAsSet(Collection<Feature> collection)
collection
- The collection to copy.public static Collection<Feature> unmodifiableFeatures(Collection<Feature> value)
value
- The collection to copy.public static Map<String,Feature> featuresAsMap(Collection<Feature> collection)
collection
- The collection to convert to a map.public static Feature getFeatureById(Collection<Feature> 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 |