|
JACK 5.4 JACOB Application Interface | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaos.util.ObservableStatus
aos.apib.BaseList
BaseList
is an implementation of the
Aggregate
interface. Its intended
use is as a container to hold an indeterminate number of Objects
implementing the Base
interface,
similar to a Java Vector
.
Constructor Summary | |
BaseList()
|
Method Summary | |
Base |
addAfter(Base existing_obj,
Base new_obj)
Adds a Jacob Base Object to the
Aggregate one position after an Object already
present in the Aggregate . Any Base
Objects in the Aggregate located after the
Object in the second parameter will be shifted to make way for the
new Object.
If the object in the second parameter cannot be found, this method will return null. Otherwise, the added Object is returned. |
Base |
addAt(Base obj,
int index)
Adds a Jacob Base Object to the
Aggregate at the given index position.
Any Base Objects in the Aggregate
located at or after the given index
will be shifted to make way for the new Object.
If the given index is less than zero, this method will return null.
However, if the index given is greater than the index of the last element
in the |
Base |
addBefore(Base existing_obj,
Base new_obj)
Adds a Jacob Base Object to the
Aggregate one position before an Object already
present in the Aggregate . Any Base
Objects in the Aggregate located before the
Object in the second parameter will be shifted to make way for the new
Object.
If the object in the second parameter cannot be found, this method will return null. Otherwise, the added Object is returned. |
Base |
addFirst(Base obj)
Adds a Jacob Base Object to the start of the
Aggregate . |
Base |
addLast(Base obj)
Adds a Jacob Base Object to the end of the
Aggregate . |
Base |
elementAt(int index)
Returns the Jacob Base element at the given index
of the Aggregate .
If the index is less than zero, or greater than the index of the last
element in the Aggregate ,
this method returns null. |
java.util.Enumeration |
elements()
Returns the Aggregate as an Enumeration of elements of type
AggregateEnumeration . |
void |
empty()
Permanently removes all elements currently stored in the Aggregate . |
int |
getSize()
Returns the number of elements currently stored in the Aggregate . |
StreamerSupport |
getStreamer()
Returns the StreamerSupport for
the object implementing this interface. |
protected void |
notifyChanged(int type,
int index,
java.lang.Object o)
|
Base |
replace(Base old_obj,
Base new_obj)
Replaces a Jacob Base Object currently stored in
the Aggregate with a new one.
If the Object to replace does not exist in the |
Base |
rm(Base obj)
Removes a given Jacob Base Object from the
Aggregate .
Any Base Objects in the Aggregate
located after the given Object will be shifted to fill the space left
by its removal.
If the given Object does not exist in the |
Base |
rmAt(int index)
Removes a Jacob Base Object from the
Aggregate at a given index position.
Any Base Objects in the Aggregate
located after the given index will be shifted to fill the space left
by the removed Object. If the given index is less than zero, or
greater than the index of the last element in the |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseList()
Method Detail |
public StreamerSupport getStreamer()
Base
StreamerSupport
for
the object implementing this interface.
getStreamer
in interface Base
public void empty()
Aggregate
.
empty
in interface Aggregate
public Base addLast(Base obj)
Base
Object to the end of the
Aggregate
.
addLast
in interface Aggregate
Base
Object that was added to the
end of the Aggregate
.public Base addFirst(Base obj)
Base
Object to the start of the
Aggregate
.
addFirst
in interface Aggregate
Base
Object that was added to the
start of the Aggregate
.public Base replace(Base old_obj, Base new_obj)
Base
Object currently stored in
the Aggregate
with a new one.
If the Object to replace does not exist in the Aggregate
,
this method will return null. Otherwise, the Object that was added is
returned.
replace
in interface Aggregate
Base
Object that was added to
the Aggregate
; otherwise null.public Base rm(Base obj)
Base
Object from the
Aggregate
.
Any Base
Objects in the Aggregate
located after the given Object will be shifted to fill the space left
by its removal.
If the given Object does not exist in the Aggregate
,
this method will return null. Otherwise, the removed Object is returned.
rm
in interface Aggregate
Base
Object that was removed from
the Aggregate
; otherwise null.public Base addAfter(Base existing_obj, Base new_obj)
Base
Object to the
Aggregate
one position after an Object already
present in the Aggregate
. Any Base
Objects in the Aggregate
located after the
Object in the second parameter will be shifted to make way for the
new Object.
If the object in the second parameter cannot be found, this method will return null. Otherwise, the added Object is returned.
addAfter
in interface Aggregate
Base
Object that was added to
the Aggregate
; otherwise null.public Base elementAt(int index)
Base
element at the given index
of the Aggregate
.
If the index is less than zero, or greater than the index of the last
element in the Aggregate
,
this method returns null.
elementAt
in interface Aggregate
index
- the index of the Jacob Base
Object
to be retrieved.
Base
Object at the given index
of the Aggregate
; otherwise null.public Base addAt(Base obj, int index)
Base
Object to the
Aggregate
at the given index position.
Any Base
Objects in the Aggregate
located at or after the given index
will be shifted to make way for the new Object.
If the given index is less than zero, this method will return null.
However, if the index given is greater than the index of the last element
in the Aggregate
, the new Object will simply be added to the
end of the Aggregate
. Under normal circumstances, this
method returns the Object added to the Aggregate
.
addAt
in interface Aggregate
index
- the index at which the Jacob Base
Object should be added.
Base
Object that was added to
the Aggregate
; otherwise null.public Base rmAt(int index)
Base
Object from the
Aggregate
at a given index position.
Any Base
Objects in the Aggregate
located after the given index will be shifted to fill the space left
by the removed Object. If the given index is less than zero, or
greater than the index of the last element in the Aggregate
,
this method will return null. Otherwise, the removed Object is returned.
rmAt
in interface Aggregate
index
- the index of the Jacob Base
Object
to be removed from the Aggregate
.
Base
Object that was removed
from the Aggregate
; otherwise null.public Base addBefore(Base existing_obj, Base new_obj)
Base
Object to the
Aggregate
one position before an Object already
present in the Aggregate
. Any Base
Objects in the Aggregate
located before the
Object in the second parameter will be shifted to make way for the new
Object.
If the object in the second parameter cannot be found, this method will return null. Otherwise, the added Object is returned.
addBefore
in interface Aggregate
Base
Object that was added to the
Aggregate
; otherwise null.public java.util.Enumeration elements()
Aggregate
as an Enumeration of elements of type
AggregateEnumeration
.
elements
in interface Aggregate
Aggregate
as an Enumeration of elements of type
AggregateEnumeration
.public int getSize()
Aggregate
.
getSize
in interface Aggregate
Aggregate
.protected void notifyChanged(int type, int index, java.lang.Object o)
|
JACK 5.4 JACOB Application Interface | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.