| Constructor and Description |
|---|
WireImpl(Capability capability,
Requirement requirement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this
Wire to another Wire. |
Capability |
getCapability()
Returns the
Capability for this wire. |
Resource |
getProvider()
Returns the resource providing the
capability. |
Requirement |
getRequirement()
Returns the
Requirement for this wire. |
Resource |
getRequirer()
Returns the resource who
requires the
capability. |
int |
hashCode()
Returns the hashCode of this
Wire. |
java.lang.String |
toString() |
public WireImpl(Capability capability, Requirement requirement)
public Capability getCapability()
WireCapability for this wire.getCapability in interface WireCapability for this wire.public Requirement getRequirement()
WireRequirement for this wire.getRequirement in interface WireRequirement for this wire.public Resource getProvider()
Wirecapability.
The returned resource may differ from the resource referenced by the
capability.
getProvider in interface Wirepublic Resource getRequirer()
Wirerequires the
capability.
The returned resource may differ from the resource referenced by the
requirement.
getRequirer in interface Wirepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
WireWire.public boolean equals(java.lang.Object obj)
WireWire to another Wire.
This Wire is equal to another Wire if they have the same
capability, requirement, provider and requirer.
Copyright (c) aQute SARL (2000, 2017) and others. All Rights Reserved.