public class ComparisonKey extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
category |
(package private) Object |
value |
| Constructor and Description |
|---|
ComparisonKey(int category,
Object value)
Create a comparison key for a value in a particular category.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Test if two comparison keys are equal
|
int |
hashCode()
Get a hashcode for a comparison key.
|
int category
Object value
public ComparisonKey(int category,
Object value)
category - the categoryvalue - the value within the categorypublic boolean equals(Object other)
equals in class Objectother - the other comparison keyClassCastException - if the other object is not a ComparisonKey