public class ComparisonKey
extends java.lang.Object
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.Object
other
- the other comparison keyjava.lang.ClassCastException
- if the other object is not a ComparisonKeypublic int hashCode()
hashCode
in class java.lang.Object