|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cumulus4j.store.model.IndexValue
public class IndexValue
Helper for en- & decoding the decrypted (plain) contents of
IndexEntry.indexValue
. This byte-array holds
references to DataEntry.dataEntryID
s.
Constructor Summary | |
---|---|
IndexValue()
Create an empty instance of IndexValue . |
|
IndexValue(byte[] indexValueByteArray)
Create an IndexValue instance from the decrypted (plain) byte-array
which is stored in IndexEntry.indexValue . |
Method Summary | |
---|---|
boolean |
addDataEntryID(long dataEntryID)
|
boolean |
equals(Object obj)
|
Set<Long> |
getDataEntryIDs()
Get dataEntryID s referencing those DataEntry s which this IndexValue
(or more precisely the IndexEntry from which this IndexValue was created) points to. |
int |
hashCode()
|
boolean |
isDataEntryIDsEmpty()
|
boolean |
removeDataEntryID(long dataEntryID)
|
byte[] |
toByteArray()
Get a byte-array with all dataEntryIDs . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexValue()
IndexValue
. This is equivalent to
calling IndexValue(byte[])
with a null
or an empty argument.
public IndexValue(byte[] indexValueByteArray)
IndexValue
instance from the decrypted (plain) byte-array
which is stored in IndexEntry.indexValue
.
indexValueByteArray
- the plain (decrypted) byte-array of IndexEntry.getIndexValue()
or null
(null
is equivalent to an empty byte-array). This byte-array is what is created by toByteArray()
.Method Detail |
---|
public byte[] toByteArray()
dataEntryIDs
. It can be passed to
IndexValue(byte[])
later (e.g. after encrypting, persisting, loading & decrypting).
public Set<Long> getDataEntryIDs()
dataEntryID
s referencing those DataEntry
s which this IndexValue
(or more precisely the IndexEntry
from which this IndexValue
was created) points to.
DataEntry
instances that are referenced by this index entry.public boolean isDataEntryIDsEmpty()
public boolean addDataEntryID(long dataEntryID)
public boolean removeDataEntryID(long dataEntryID)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
Cumulus4j API (1.0.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |