public class ComparisonKey
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
category |
(package private) java.lang.Object |
value |
| Constructor and Description |
|---|
ComparisonKey(int category,
java.lang.Object value)
Create a comparison key for a value in a particular category.
|
public ComparisonKey(int category,
java.lang.Object value)
category - the categoryvalue - the value within the categorypublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - the other comparison keyjava.lang.ClassCastException - if the other object is not a ComparisonKeypublic int hashCode()
hashCode in class java.lang.Object