Package net.sf.basedb.core
Class ContextKey
- java.lang.Object
-
- net.sf.basedb.core.ContextKey
-
class ContextKey extends Object
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Developer documentation: Client, session and settings
- Last modified
- $Date: 2015-05-12 11:27:08 +0200 (ti, 12 maj 2015) $
-
-
Field Summary
Fields Modifier and Type Field Description private Item
item
private String
subContext
-
Constructor Summary
Constructors Constructor Description ContextKey(Item item, String subContext)
Create a new ContextKey object fromItem
and it's subcontext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Check if this object is equal to anotherContextKey
object.Item
getItem()
String
getSubContext()
int
hashCode()
Calculate the hash code for the object.
-
-
-
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 anotherContextKey
object. They are equal if both have the same item and subcontext.
-
-