de.topicmapslab.majortom.inmemory.store
Class InMemoryIdentity

java.lang.Object
  extended by de.topicmapslab.majortom.inmemory.store.InMemoryIdentity
All Implemented Interfaces:
de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity, java.io.Serializable

public class InMemoryIdentity
extends java.lang.Object
implements de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity

Implementation of ITopicMapStoreIdentity for a InMemoryTopicMapStore.

Author:
Sven Krosse
See Also:
Serialized Form

Field Summary
private  long id
          the internal id
private static long serialVersionUID
           
 
Constructor Summary
InMemoryIdentity(long id)
          constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 java.lang.String getId()
          Return the internal id of the construct
 int hashCode()
          
 long longId()
          
 void setId(long id)
          Modify the underlying id
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

id

private long id
the internal id

Constructor Detail

InMemoryIdentity

public InMemoryIdentity(long id)
constructor

Parameters:
id - the id
Method Detail

getId

public java.lang.String getId()
Return the internal id of the construct

Specified by:
getId in interface de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity
Returns:
the id

longId

public long longId()

Specified by:
longId in interface de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

setId

public void setId(long id)
Modify the underlying id

Specified by:
setId in interface de.topicmapslab.majortom.model.store.ITopicMapStoreIdentity
Parameters:
id - the id to set