@ConsumerType
public interface Requirement
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
Requirement to another Requirement . |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the attributes of this requirement.
|
java.util.Map<java.lang.String,java.lang.String> |
getDirectives()
Returns the directives of this requirement.
|
java.lang.String |
getNamespace()
Returns the namespace of this requirement.
|
Resource |
getResource()
Returns the resource declaring this requirement.
|
int |
hashCode()
Returns the hashCode of this
Requirement . |
java.lang.String getNamespace()
java.util.Map<java.lang.String,java.lang.String> getDirectives()
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Requirement attributes have no specified semantics and are considered extra user defined information.
Resource getResource()
null
if this requirement is synthesized.boolean equals(java.lang.Object obj)
Requirement
to another Requirement
.
This Requirement
is equal to another Requirement
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 Requirement
.true
if this Requirement
is equal to the other
object; false
otherwise.int hashCode()
Requirement
.hashCode
in class java.lang.Object
Requirement
.Copyright © OSGi Alliance (2000, 2020). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0