krati.core.array.entry
Class SimpleEntry<T extends EntryValue>
java.lang.Object
krati.core.array.entry.AbstractEntry<T>
krati.core.array.entry.SimpleEntry<T>
- All Implemented Interfaces:
- Comparable<Entry<T>>, Entry<T>
public class SimpleEntry<T extends EntryValue>
- extends AbstractEntry<T>
EntryImpl.
Transactional Redo Entry.
- Author:
- jwu
Constructor Summary |
SimpleEntry(int entryId,
EntryValueFactory<T> valFactory,
int initialCapacity)
Create a new entry to hold updates to an array. |
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 |
_valArray
protected final ArrayList<T extends EntryValue> _valArray
SimpleEntry
public SimpleEntry(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 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>
add
public void add(T value)
- Description copied from interface:
Entry
- Adds an 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
Copyright © 2011. All Rights Reserved.