接口 Wire
-
- 所有已知子接口:
BundleWire
- 所有已知实现类:
BundleWireImpl
@ConsumerType public interface WireA wire connecting aCapabilityto aRequirement.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.
- 作者:
- $Id: 6c248ea2b9b24f3610a14e5e8deec9cd0b7aa1c9 $
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object obj)Compares thisWireto anotherWire.CapabilitygetCapability()Returns theCapabilityfor this wire.ResourcegetProvider()Returns the resource providing thecapability.RequirementgetRequirement()Returns theRequirementfor this wire.ResourcegetRequirer()Returns the resource whorequiresthecapability.inthashCode()Returns the hashCode of thisWire.
-
-
-
方法详细资料
-
getCapability
Capability getCapability()
Returns theCapabilityfor this wire.- 返回:
- The
Capabilityfor this wire.
-
getRequirement
Requirement getRequirement()
Returns theRequirementfor this wire.- 返回:
- The
Requirementfor this wire.
-
getProvider
Resource getProvider()
Returns the resource providing thecapability.The returned resource may differ from the resource referenced by the
capability.- 返回:
- The resource providing the capability.
-
getRequirer
Resource getRequirer()
Returns the resource whorequiresthecapability.The returned resource may differ from the resource referenced by the
requirement.- 返回:
- The resource who requires the capability.
-
equals
boolean equals(java.lang.Object obj)
Compares thisWireto anotherWire.This
Wireis equal to anotherWireif they have the same capability, requirement, provider and requirer.- 覆盖:
equals在类中java.lang.Object- 参数:
obj- The object to compare against thisWire.- 返回:
trueif thisWireis equal to the other object;falseotherwise.
-
hashCode
int hashCode()
Returns the hashCode of thisWire.- 覆盖:
hashCode在类中java.lang.Object- 返回:
- The hashCode of this
Wire.
-
-