@ConsumerType public interface 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  Resourceto anotherResource. | 
| java.util.List<Capability> | getCapabilities(java.lang.String namespace)Returns the capabilities declared by this resource. | 
| java.util.List<Requirement> | getRequirements(java.lang.String namespace)Returns the requirements declared by this bundle resource. | 
| int | hashCode()Returns the hashCode of this  Resource. | 
java.util.List<Capability> getCapabilities(java.lang.String namespace)
namespace - The namespace of the declared capabilities to return or
        null to return the declared capabilities from all
        namespaces.Capabilitys
         from the specified namespace. The returned list will be empty if
         this resource declares no capabilities in the specified
         namespace.java.util.List<Requirement> getRequirements(java.lang.String namespace)
namespace - The namespace of the declared requirements to return or
        null to return the declared requirements from all
        namespaces.Requirement
         s from the specified namespace. The returned list will be empty
         if this resource declares no requirements in the specified
         namespace.boolean equals(java.lang.Object obj)
Resource to another Resource.
 
 
 This Resource is equal to another Resource if both have
 the same content and come from the same location. Location may be defined
 as the bundle location if the resource is an installed bundle or the
 repository location if the resource is in a repository.
equals in class java.lang.Objectobj - The object to compare against this Resource.true if this Resource is equal to the other
         object; false otherwise.int hashCode()
Resource.hashCode in class java.lang.ObjectResource.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0