2.17.2: 2011-06-17

net.sf.basedb.core
Class ContextKey

java.lang.Object
  extended by net.sf.basedb.core.ContextKey

 class ContextKey
extends Object

Version:
2.0
Author:
Nicklas
See Also:
Session and client overview
Last modified
$Date: 2009-04-06 14:52:39 +0200 (Mon, 06 Apr 2009) $

Field Summary
private  Item item
           
private  String subContext
           
 
Constructor Summary
ContextKey(Item item, String subContext)
          Create a new ContextKey object from Item and it's subcontext.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item

private final Item item

subContext

private final String subContext
Constructor Detail

ContextKey

public ContextKey(Item item,
                  String subContext)
Create a new ContextKey object from Item and it's subcontext.

Parameters:
item -
subContext -
Method Detail

getItem

public Item getItem()
Returns:
The Item that belongs to this object.

getSubContext

public String getSubContext()
Returns:
A String with the subcontext.

equals

public boolean equals(Object o)
Check if this object is equal to another ContextKey object. They are equal if both have the same item and subcontext.

Overrides:
equals in class Object

hashCode

public int hashCode()
Calculate the hash code for the object.

Overrides:
hashCode in class Object

2.17.2: 2011-06-17