| JavaTM 2 Platform Std. Ed. v1.4.2 
 
java.rmi.activation
Class ActivationGroupID
java.lang.Object
   java.rmi.activation.ActivationGroupID 
All Implemented Interfaces: Serializable 
 
public class ActivationGroupIDextends Objectimplements Serializable 
The identifier for a registered activation group serves several
 purposes:  
 identifies the group uniquely within the activation system, and
 contains a reference to the group's activation system so that the
 group can contact its activation system when necessary. 
 The ActivationGroupIDis returned from the call toActivationSystem.registerGroupand is used to identify
 the group within the activation system. This group id is passed
 as one of the arguments to the activation group's special constructor
 when an activation group is created/recreated. 
 
 
Since:1.2See Also:ActivationGroup,ActivationGroupDesc, 
Serialized Form 
 
 
 
ActivationGroupID
public ActivationGroupID(ActivationSystem system) 
Constructs a unique group id.
Parameters:system- the group's activation systemSince:1.2 
getSystem
public ActivationSystem getSystem() 
Returns the group's activation system.
 
Returns:the group's activation systemSince:1.2 
 
hashCode
public int hashCode() 
Returns a hashcode for the group's identifier.  Two group
 identifiers that refer to the same remote group will have the
 same hash code.
 
Overrides:hashCodein classObject
Returns:a hash code value for this object.Since:1.2See Also:Hashtable 
 
equals
public boolean equals(Object obj) 
Compares two group identifiers for content equality.
 Returns true if both of the following conditions are true:
 1) the unique identifiers are equivalent (by content), and
 2) the activation system specified in each
    refers to the same remote object.
 
Overrides:equalsin classObject
Parameters:obj- the Object to compare withReturns:true if these Objects are equal; false otherwise.Since:1.2See Also:Hashtable 
 Copyright 2003 Sun Microsystems, Inc. All rights reserved |