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 booleanequals(Object identity)Differentiate two identities.ContainerTypegetType()inthashCode()Allows quick verification to check is two identities are different.StringtoString()-
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:
equalsin 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:
hashCodein classSimpleContainerIdentity
-
toString
public String toString()
- Overrides:
toStringin classSimpleContainerIdentity
-
-