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.
-
-
Constructor Summary
Constructors Constructor Description FullContainerIdentity(String id, ContainerType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object identity)
Differentiate two identities.ContainerType
getType()
int
hashCode()
Allows quick verification to check is two identities are different.String
toString()
-
Methods inherited from class org.codehaus.cargo.generic.internal.util.SimpleContainerIdentity
getId
-
-
-
-
Constructor Detail
-
FullContainerIdentity
public FullContainerIdentity(String id, ContainerType type)
- Parameters:
id
- the container idtype
- the container type
-
-
Method Detail
-
getType
public ContainerType getType()
- Returns:
- the container type
-
equals
public boolean equals(Object identity)
Differentiate two identities. Differentiate two identities.- Overrides:
equals
in classSimpleContainerIdentity
-
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 classSimpleContainerIdentity
-
toString
public String toString()
- Overrides:
toString
in classSimpleContainerIdentity
-
-