@ConsumerType public interface Capability
Resource
.
Instances of this type must be effectively immutable. That is, for a given instance of this interface, the methods defined by this interface must always return the same result.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this
Capability to another Capability . |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the attributes of this capability.
|
java.util.Map<java.lang.String,java.lang.String> |
getDirectives()
Returns the directives of this capability.
|
java.lang.String |
getNamespace()
Returns the namespace of this capability.
|
Resource |
getResource()
Returns the resource declaring this capability.
|
int |
hashCode()
Returns the hashCode of this
Capability . |
java.lang.String getNamespace()
java.util.Map<java.lang.String,java.lang.String> getDirectives()
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Resource getResource()
boolean equals(java.lang.Object obj)
Capability
to another Capability
.
This Capability
is equal to another Capability
if they
have the same namespace, directives and attributes and are declared by
the same resource.
equals
in class java.lang.Object
obj
- The object to compare against this Capability
.true
if this Capability
is equal to the other
object; false
otherwise.int hashCode()
Capability
.hashCode
in class java.lang.Object
Capability
.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0