org.codehaus.cargo.generic.internal.util
Class SimpleContainerIdentity

java.lang.Object
  extended by org.codehaus.cargo.generic.internal.util.SimpleContainerIdentity
All Implemented Interfaces:
ContainerIdentity
Direct Known Subclasses:
FullContainerIdentity

public class SimpleContainerIdentity
extends java.lang.Object
implements ContainerIdentity

Represents a container identified only by its id.

Version:
$Id: $

Constructor Summary
SimpleContainerIdentity(java.lang.String id)
           
 
Method Summary
 boolean equals(java.lang.Object identity)
          Differentiate two identities.
 java.lang.String getId()
           
 int hashCode()
          Allows quick verification to check is two identities are different.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleContainerIdentity

public SimpleContainerIdentity(java.lang.String id)
Parameters:
id - the container id
Method Detail

getId

public java.lang.String getId()
Returns:
the container id

equals

public boolean equals(java.lang.Object identity)
Differentiate two identities.

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Allows quick verification to check is two identities are different.

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2004-2009 Codehaus. All Rights Reserved.