org.codehaus.cargo.generic.internal.util
Class FullContainerIdentity
java.lang.Object
org.codehaus.cargo.generic.internal.util.SimpleContainerIdentity
org.codehaus.cargo.generic.internal.util.FullContainerIdentity
- All Implemented Interfaces:
- ContainerIdentity
public class FullContainerIdentity
- extends SimpleContainerIdentity
Represents a container identified by its id and type.
- Version:
- $Id: FullContainerIdentity.java 1705 2008-09-02 13:14:55Z adriana $
FullContainerIdentity
public FullContainerIdentity(String id,
ContainerType type)
- Parameters:
id
- the container idtype
- the container type
getType
public ContainerType getType()
- Returns:
- the container type
equals
public boolean equals(Object identity)
- Differentiate two identities.
Differentiate two identities.
- Overrides:
equals
in class SimpleContainerIdentity
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Allows quick verification to check is two identities are different.
Allows quick verification to check is two identities are different.
- Overrides:
hashCode
in class SimpleContainerIdentity
- See Also:
Object.hashCode()
toString
public String toString()
-
- Overrides:
toString
in class SimpleContainerIdentity
- See Also:
Object.toString()
Copyright © 2004-2012 Codehaus. All Rights Reserved.