class ContextKey
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Item |
item |
private java.lang.String |
subContext |
Constructor and Description |
---|
ContextKey(Item item,
java.lang.String subContext)
Create a new ContextKey object from
Item and it's subcontext. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Check if this object is equal to another
ContextKey
object. |
Item |
getItem() |
java.lang.String |
getSubContext() |
int |
hashCode()
Calculate the hash code for the object.
|
private final Item item
private final java.lang.String subContext
public Item getItem()
Item
that belongs to this object.public java.lang.String getSubContext()
String
with the subcontext.public boolean equals(java.lang.Object o)
ContextKey
object. They are equal if both have the same item and subcontext.equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object