krati.core.array.entry
Class PreFillEntry<T extends EntryValue>
java.lang.Object
krati.core.array.entry.AbstractEntry<T>
krati.core.array.entry.PreFillEntry<T>
- All Implemented Interfaces:
- Comparable<Entry<T>>, Entry<T>
- Direct Known Subclasses:
- PreFillEntryInt, PreFillEntryLong, PreFillEntryShort
public abstract class PreFillEntry<T extends EntryValue>
- extends AbstractEntry<T>
Methods inherited from class krati.core.array.entry.AbstractEntry |
capacity, compareTo, getFile, getId, getMaxScn, getMinScn, getServiceId, getValueFactory, isEmpty, isFull, load, maintainScn, save, setServiceId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface krati.core.array.entry.Entry |
add |
_index
protected int _index
_valArray
protected final ArrayList<T extends EntryValue> _valArray
PreFillEntry
public PreFillEntry(int entryId,
EntryValueFactory<T> valFactory,
int initialCapacity)
- Create a new entry to hold updates to an array.
- Parameters:
entryId
- The Id of this Entry.valFactory
- The factory for manufacturing EntryValue(s).initialCapacity
- The initial number of values this entry can hold.
size
public final int size()
- Returns:
- the number of EntryValue(s) in this Entry.
clear
public void clear()
- Description copied from interface:
Entry
- Clears this Entry.
- Specified by:
clear
in interface Entry<T extends EntryValue>
- Overrides:
clear
in class AbstractEntry<T extends EntryValue>
getValueList
public List<T> getValueList()
- Returns:
- a list of EntryValue(s) contained in this Entry.
loadDataSection
protected void loadDataSection(DataReader in,
int cnt)
throws IOException
- Specified by:
loadDataSection
in class AbstractEntry<T extends EntryValue>
- Throws:
IOException
saveDataSection
protected void saveDataSection(DataWriter out)
throws IOException
- Specified by:
saveDataSection
in class AbstractEntry<T extends EntryValue>
- Throws:
IOException
ensureCapacity
protected void ensureCapacity(int newCapacity)
Copyright © 2011. All Rights Reserved.