org.codehaus.cargo.generic.internal.util
Class SimpleContainerIdentity
java.lang.Object
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: $
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 |
SimpleContainerIdentity
public SimpleContainerIdentity(java.lang.String id)
- Parameters:
id
- the container id
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-2011 Codehaus. All Rights Reserved.