Class ZooDiscoveryTargetID
- java.lang.Object
-
- org.eclipse.ecf.core.identity.BaseID
-
- org.eclipse.ecf.provider.zookeeper.core.ZooDiscoveryTargetID
-
- All Implemented Interfaces:
Serializable,Comparable,Principal,org.eclipse.core.runtime.IAdaptable,ID
public class ZooDiscoveryTargetID extends BaseID
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ZooDiscoveryTargetID(ZooDiscoveryNamespace zkDiscoveryNamespace, String[] parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intnamespaceCompareTo(BaseID o)protected booleannamespaceEquals(BaseID o)Called byNamespace.testIDEquals(BaseID, BaseID).protected StringnamespaceGetName()Called byNamespace.getNameForID(BaseID).protected intnamespaceHashCode()Called byNamespace.getHashCodeForID(BaseID).-
Methods inherited from class org.eclipse.ecf.core.identity.BaseID
compareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm, toExternalForm
-
-
-
-
Constructor Detail
-
ZooDiscoveryTargetID
public ZooDiscoveryTargetID(ZooDiscoveryNamespace zkDiscoveryNamespace, String[] parameters)
-
-
Method Detail
-
namespaceCompareTo
protected int namespaceCompareTo(BaseID o)
Description copied from class:BaseID- Specified by:
namespaceCompareToin classBaseID- Parameters:
o- the other ID to compare to. Will not benull.- Returns:
- the appropriate value as per
Comparablecontract.
-
namespaceEquals
protected boolean namespaceEquals(BaseID o)
Description copied from class:BaseIDCalled byNamespace.testIDEquals(BaseID, BaseID).- Specified by:
namespaceEqualsin classBaseID- Parameters:
o- the other ID to test against. May benull.- Returns:
trueif this ID is equal to the given ID.falseotherwise.
-
namespaceGetName
protected String namespaceGetName()
Description copied from class:BaseIDCalled byNamespace.getNameForID(BaseID).- Specified by:
namespaceGetNamein classBaseID- Returns:
- String name for this ID. Must not be
null. Value returned should be unique within this Namespace.
-
namespaceHashCode
protected int namespaceHashCode()
Description copied from class:BaseIDCalled byNamespace.getHashCodeForID(BaseID).- Specified by:
namespaceHashCodein classBaseID- Returns:
- int hashCode for this ID. Returned value must be unique within this process.
-
-