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.
|
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 Object
other
- the other comparison keyClassCastException
- if the other object is not a ComparisonKey