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