Class ConnectionKey
- java.lang.Object
-
- org.objectweb.joram.client.jms.pool.ConnectionKey
-
public class ConnectionKey extends Object
A Key to retrieve Connection in cache.
-
-
Constructor Summary
Constructors Constructor Description ConnectionKey(String name, String pass)Creates a new ConnectionKey object for user's name and password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Indicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for the object.
-
-
-
Method Detail
-
hashCode
public int hashCode()
Returns a hash code value for the object.- Overrides:
hashCodein classObject- Returns:
- returns the hash code value of the name attribute.
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.- Overrides:
equalsin classObject- Returns:
- returns true if the specified object is a ConnectionKey and if name and password are equals.
- See Also:
Object.hashCode()
-
-