|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ivmaidns.storage.StorageEvent
public final class StorageEvent
Class for storage updation events (addition, modification and removal).
Field Summary | |
---|---|
protected int |
location
|
protected java.lang.Object |
oldValue
NOTE: oldValue may be == null. |
protected int |
prevLoc
|
protected Storage |
source
NOTE: source must be ! |
Constructor Summary | |
---|---|
StorageEvent(Storage source,
int prevLoc,
int location,
java.lang.Object oldValue)
NOTE: source must be ! |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getAt(int index)
NOTE: Result is (new Object[] { getSource(), new Integer(getPrevLoc()), new Integer(getLocation()), getOldValue() })[index]. |
int |
getLocation()
|
java.lang.Object |
getOldValue()
|
int |
getPrevLoc()
|
int |
hashCode()
NOTE: source is not hashed. |
void |
integrityCheck()
NOTE: Check for integrity of this object. source storage is not checked. |
int |
length()
NOTE: Result is the number of elements accessible through getAt(int). |
Storage |
source()
NOTE: Result ! |
java.lang.String |
toString()
NOTE: source is not represented in the result. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Storage source
protected final int prevLoc
protected final int location
protected final java.lang.Object oldValue
Constructor Detail |
---|
public StorageEvent(Storage source, int prevLoc, int location, java.lang.Object oldValue) throws java.lang.NullPointerException
java.lang.NullPointerException
Method Detail |
---|
public final Storage source()
public final int getPrevLoc()
public final int getLocation()
public final java.lang.Object getOldValue()
public int length()
length
in interface Indexable
Indexable.getAt(int)
public java.lang.Object getAt(int index) throws java.lang.ArrayIndexOutOfBoundsException
getAt
in interface Indexable
index
- the index (must be in the range) at which to return an element.
null
) at index.
java.lang.ArrayIndexOutOfBoundsException
- if index is negative or is not less than
length()
.Indexable.length()
public java.lang.Object clone()
ReallyCloneable
this
object.
By the clone()
standard definition, this method
creates a new instance of the class of this object and
initializes all its fields with exactly the contents of the
corresponding fields of this object. Typically, native
clone()
method of Object
class is used
inside this method.
clone
in interface ReallyCloneable
clone
in class java.lang.Object
null
and != this
) of
this
instance.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void integrityCheck()
integrityCheck
in interface Verifiable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |