|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
au.com.zip.cs.AbstractEntityTable
public abstract class AbstractEntityTable
A base class with utility routines (so they can be extended).
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
AbstractEntityTable()
|
|
| Method Summary | |
|---|---|
Entity |
byIndex(int index)
Return the nth Entity in the table. |
Enumeration |
children()
|
Object |
get(int ndx)
Implementation of List.get(int) that calls EntityTable.byIndex(int). |
boolean |
getAllowsChildren()
|
int |
getAttributeIndex(String name)
Return the index of the supplied attribute name. |
static List |
getBetween(EntityTable t,
long start,
long end)
Static version of EntityTable.getBetween(long,long) to aid @{link EntityTable} implementors. |
List |
getBetween(long start,
long end)
Return an List where each Entity's start and end overlap the period specified. |
TreeNode |
getChildAt(int childIndex)
|
int |
getChildCount()
|
static int |
getIDIndex(Iterator iter,
long id)
Return the index if the supplied id is in an ID Iterator. |
IDMap |
getIDMap()
|
int |
getIndex(Entity e)
Return the index of this Entity within the table. |
int |
getIndex(TreeNode node)
|
TreeNode |
getParent()
|
static long |
idByIndex(EntityTable t,
int index)
Return the id whose index is specified. |
boolean |
isLeaf()
|
void |
preload()
Preload the table in one go. |
int |
size()
Returns the number of elements in this list. |
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface au.com.zip.cs.EntityTable |
|---|
byAttribute, byID, byShortName, getAttributeNames, getIDAttributeName, getIDIterator, getTableSize, iterator, setIDAttributeName |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public AbstractEntityTable()
| Method Detail |
|---|
public int getIndex(Entity e)
EntityTableEntity within the table.
getIndex in interface EntityTablee - the Entity to locate
public static final int getIDIndex(Iterator iter,
long id)
Iterator.
The Iterator returns Numbers as with EntityTable.getIDIterator().
iter - the Iteratorid - the id sought
public static long idByIndex(EntityTable t,
int index)
index - the index of the id
Entitypublic IDMap getIDMap()
public Entity byIndex(int index)
EntityTableEntity in the table.
For tables which are mappings of other data structures
this may be an expensive operation.
byIndex in interface EntityTableindex - the index of the Entity to obtain, counting from 0
null if the index is unmappedpublic void preload()
EntityTable
preload in interface EntityTable
public List getBetween(long start,
long end)
EntityTableList where each Entity's start and end overlap the period specified.
getBetween in interface EntityTablestart - the start of the specified periodend - the end of the specified period
public static List getBetween(EntityTable t,
long start,
long end)
EntityTable.getBetween(long,long) to aid @{link EntityTable} implementors.
t - the EntityTable to perusestart - the start dateend - the end date
public int getAttributeIndex(String name)
EntityTable
getAttributeIndex in interface EntityTablename - the attribute
public Object get(int ndx)
List.get(int) that calls EntityTable.byIndex(int).
get in interface Listget in class AbstractListndx - the Entity to get
public int size()
Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic Enumeration children()
children in interface TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic int getIndex(TreeNode node)
getIndex in interface TreeNodepublic TreeNode getParent()
getParent in interface TreeNodepublic boolean isLeaf()
isLeaf in interface TreeNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||