public class ContextIndex extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private ClientData |
client |
private int |
itemType |
private String |
name |
private static long |
serialVersionUID |
private String |
subContext |
Constructor and Description |
---|
ContextIndex() |
ContextIndex(ClientData client,
int itemType,
String subContext,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Check if this object is equal to another
ContextIndex
object. |
ClientData |
getClient()
Get the client which uses this context.
|
int |
getItemType() |
String |
getName()
Get the name of this
Context item. |
String |
getSubContext()
Get the subcontext this
Context belongs to. |
int |
hashCode()
Calculate the hash code for the object.
|
private void |
readObject(ObjectInputStream ois) |
(package private) void |
setClient(ClientData client) |
(package private) void |
setItemType(int itemType) |
(package private) void |
setName(String name) |
(package private) void |
setSubContext(String subContext) |
private void |
writeObject(ObjectOutputStream ois) |
private static final long serialVersionUID
private transient ClientData client
private int itemType
private String subContext
private String name
ContextIndex()
public ContextIndex(ClientData client, int itemType, String subContext, String name)
public ClientData getClient()
void setClient(ClientData client)
public int getItemType()
void setItemType(int itemType)
public String getSubContext()
Context
belongs to.void setSubContext(String subContext)
public String getName()
Context
item.void setName(String name)
public boolean equals(Object o)
ContextIndex
object. They are equal if both have the same client, item type and context typepublic int hashCode()
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream ois) throws IOException
IOException