|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.formulae.ExpressionList | +--com.klg.jclass.util.formulae.MathExpressionList
A MathExpressionList is a List of Expressions
Field Summary | |
protected List |
dataVector
We store the data in this List in a Vector |
Constructor Summary | |
MathExpressionList()
Create an empty MathExpressionList |
|
MathExpressionList(com.klg.jclass.util.formulae.Expression[] exprs)
Create a MathExpressionList from an array of Expressions |
Method Summary | |
void |
add(int index,
Object obj)
Add the given element at the specified index in this List |
boolean |
add(Object obj)
Append the given element to the end of this List |
boolean |
addAll(Collection coll)
Append all the elements of the given collection to the end of this List |
boolean |
addAll(int index,
Collection coll)
Insert the elements of the given collection at the given position in this List |
void |
clear()
Clear all elements from this List |
Object |
clone()
Return a clone of this ExpressionList (all members are cloned as well) |
boolean |
contains(Object obj)
Determine if the List contain the specified element |
boolean |
containsAll(Collection coll)
Determine if all the elements of the given Collection are in the List |
boolean |
equals(Object obj)
Compare the given object and this List, given that equality implies the Lists contain the same entries in the same order. |
Object |
get(int index)
Retrieve the element at a given position in this List |
int |
hashCode()
Return a hash code derived from this List |
int |
indexOf(Object obj)
Find the position (first occurence) of a given object in the List. |
boolean |
isEmpty()
Determine if the List contains no elements |
Iterator |
iterator()
Get an iterator over the elements in this List |
int |
lastIndexOf(Object o)
Find the position of the last occurence of a given object in the List. |
ListIterator |
listIterator()
Get a ListIterator over the elements of the List |
ListIterator |
listIterator(int index)
Get a ListIterator over the elements of the List beginning at the the given position in the list |
Object |
remove(int index)
Remove the element at the given position from the List |
boolean |
remove(Object o)
Remove the given element from the List (if it exists) |
boolean |
removeAll(Collection coll)
Remove all elements of the given collection from the List (if they exist) |
boolean |
retainAll(Collection c)
Remove all elements in this List which are not in the given Collection. |
Object |
set(int index,
Object obj)
Set the element at a given position in this List |
int |
size()
Return the number of elements in this List |
List |
subList(int startIndex,
int endIndex)
Get a List which is a subsequence of this List (the ordering is the same) |
Object[] |
toArray(Object[] inArray)
Fill a given array with a view of all the elements in this List NOTE: The Iterator's ordering is used |
Methods inherited from class com.klg.jclass.util.formulae.ExpressionList |
evaluate, toArray |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected List dataVector
Constructor Detail |
public MathExpressionList()
public MathExpressionList(com.klg.jclass.util.formulae.Expression[] exprs)
exprs
- An array of ExpressionsMethod Detail |
public Object clone()
clone
in interface Expression
clone
in class ExpressionList
public void add(int index, Object obj)
add
in interface List
add
in class ExpressionList
index
- The position to insert the given elementobj
- The element to be added to this Listpublic boolean add(Object obj)
add
in interface List
add
in class ExpressionList
obj
- The element to be added to this List
public boolean addAll(Collection coll)
addAll
in interface List
addAll
in class ExpressionList
coll
- The collection to be added to this List
public boolean addAll(int index, Collection coll)
addAll
in interface List
addAll
in class ExpressionList
coll
- The collection to be added to this Listindex
- The index in this List at which to insert the elements
public void clear()
clear
in interface List
clear
in class ExpressionList
public boolean contains(Object obj)
contains
in interface List
contains
in class ExpressionList
obj
- The element to be searched for in this List
public boolean containsAll(Collection coll)
containsAll
in interface List
containsAll
in class ExpressionList
coll
- The collection whose elements are sought in this List
public boolean equals(Object obj)
equals
in interface List
equals
in class ExpressionList
obj
- the object whose equality with this List is tested
public Object get(int index)
get
in interface List
get
in class ExpressionList
index
- The desired element's position
public int hashCode()
hashCode
in interface List
hashCode
in class Object
public int indexOf(Object obj)
indexOf
in interface List
indexOf
in class ExpressionList
obj
- The object to be found in the List
public boolean isEmpty()
isEmpty
in interface List
isEmpty
in class ExpressionList
public Iterator iterator()
iterator
in interface List
iterator
in class ExpressionList
public int lastIndexOf(Object o)
lastIndexOf
in interface List
lastIndexOf
in class ExpressionList
public ListIterator listIterator()
listIterator
in interface List
listIterator
in class ExpressionList
public ListIterator listIterator(int index)
listIterator
in interface List
listIterator
in class ExpressionList
index
- The position at which to initialise the ListIterator
public Object remove(int index)
remove
in interface List
remove
in class ExpressionList
index
- The position of the element to be removed from this List
public boolean remove(Object o)
remove
in interface List
remove
in class ExpressionList
public boolean removeAll(Collection coll)
removeAll
in interface List
removeAll
in class ExpressionList
coll
- The Collection whose elements are to be removed from the List
public boolean retainAll(Collection c)
retainAll
in interface List
retainAll
in class ExpressionList
public Object set(int index, Object obj)
set
in interface List
set
in class ExpressionList
index
- The desired position of the new elementobj
- The object to be stored at the given location
public int size()
size
in interface List
size
in class ExpressionList
public List subList(int startIndex, int endIndex)
subList
in interface List
subList
in class ExpressionList
startIndex
- The first element of the sublistendIndex
- The element after the last element of the sublist
public Object[] toArray(Object[] inArray)
toArray
in interface List
toArray
in class ExpressionList
inArray
- The array in which to store the elements
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |