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 Object
implements ContainerIdentity

Represents a container identified only by its id.

Version:
$Id: SimpleContainerIdentity.java 1705 2008-09-02 13:14:55Z adriana $

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

Constructor Detail

SimpleContainerIdentity

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

getId

public String getId()
Returns:
the container id

equals

public boolean equals(Object identity)
Differentiate two identities.

Overrides:
equals in class 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 Object
See Also:
Object.hashCode()

toString

public String toString()

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


Copyright © 2004-2012 Codehaus. All Rights Reserved.