Enum Class CollectionType
- All Implemented Interfaces:
Serializable
,Comparable<CollectionType>
,Constable
Collection types for the
Reference
annotation.- Since:
- 1.4
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe properties collection type is used to indicate the collection holds unmodifiable Maps containing the service properties of the bound services.The reference collection type is used to indicate the collection holds Service References for the bound services.The service collection type is used to indicate the collection holds the bound service objects.The serviceobjects collection type is used to indicate the collection holds Component Service Objects for the bound services.The tuple collection type is used to indicate the collection holds unmodifiable Map.Entries whose key is an unmodifiable Map containing the service properties of the bound service, as specified inPROPERTIES
, and whose value is the bound service object. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static CollectionType
Returns the enum constant of this class with the specified name.static CollectionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SERVICE
The service collection type is used to indicate the collection holds the bound service objects.This is the default collection type.
-
REFERENCE
The reference collection type is used to indicate the collection holds Service References for the bound services. -
SERVICEOBJECTS
The serviceobjects collection type is used to indicate the collection holds Component Service Objects for the bound services. -
PROPERTIES
The properties collection type is used to indicate the collection holds unmodifiable Maps containing the service properties of the bound services.The Maps must implement
Comparable
with thecompareTo
method comparing service property maps using an ordering which is the same as the natural ordering ofServiceReference
s as specified inServiceReference.compareTo
. -
TUPLE
The tuple collection type is used to indicate the collection holds unmodifiable Map.Entries whose key is an unmodifiable Map containing the service properties of the bound service, as specified inPROPERTIES
, and whose value is the bound service object.The Map.Entries must implement
Comparable
with thecompareTo
method comparing service property maps using an ordering which is the same as the natural ordering ofServiceReference
s as specified inServiceReference.compareTo
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<CollectionType>
-