org.codehaus.cargo.generic.internal.util
Class FullContainerIdentity

java.lang.Object
  extended by org.codehaus.cargo.generic.internal.util.SimpleContainerIdentity
      extended by 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 $

Constructor Summary
FullContainerIdentity(String id, ContainerType type)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FullContainerIdentity

public FullContainerIdentity(String id,
                             ContainerType type)
Parameters:
id - the container id
type - 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 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.