public class ComparisonKey
extends java.lang.Object
| Constructor | Description |
|---|---|
ComparisonKey(int category,
java.lang.Object value) |
Create a comparison key for a value in a particular category.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
Test if two comparison keys are equal
|
int |
hashCode() |
Get a hashcode for a comparison key.
|
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