| 
 | Cumulus4j API (1.1.0) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.dataEntryIDs.
| Constructor Summary | |
|---|---|
| IndexValue()Create an empty instance of IndexValue. | |
| IndexValue(byte[] indexValueByteArray)Create an IndexValueinstance from the decrypted (plain) byte-array
 which is stored inIndexEntry.indexValue. | |
| Method Summary | |
|---|---|
|  boolean | addDataEntryID(long dataEntryID) | 
|  boolean | equals(Object obj) | 
|  Set<Long> | getDataEntryIDs()Get dataEntryIDs referencing thoseDataEntrys which thisIndexValue(or more precisely theIndexEntryfrom which thisIndexValuewas 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()
dataEntryIDs referencing those DataEntrys 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 Objectpublic boolean equals(Object obj)
equals in class Object| 
 | Cumulus4j API (1.1.0) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||