Class DuoMapKey
- java.lang.Object
-
- org.onemind.commons.java.datastructure.DuoMapKey
-
public class DuoMapKey extends java.lang.Object
Represent a map key that consists of two value- Author:
- TiongHiang Lee (thlee@onemindsoft.org)
-
-
Constructor Summary
Constructors Constructor Description DuoMapKey(java.lang.Object key1, java.lang.Object key2)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
_keyEquals(java.lang.Object key, java.lang.Object other)
Return whether key and other is equalsboolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
_keyEquals
private boolean _keyEquals(java.lang.Object key, java.lang.Object other)
Return whether key and other is equals- Parameters:
key
- the keyother
- the other key- Returns:
- true if both null or equals
-
-