|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface StaticOrderedCollectionInterface
A static ordered collection interface defines read access to items
in an ordered collection. Items are accessed by their integer index.
The OrderedCollectionInterface
defines the update methods for an ordered collection.
| Method Summary | |
|---|---|
abstract java.lang.Object |
clone()
Clone the object. |
abstract boolean |
equals(StaticOrderedCollectionInterface orderedCollection)
Compare the current items with those in another collection and tell whether the collections are identical. |
abstract int |
getIndex(java.lang.Object element,
int startIndex)
Returns the index of the first occurrence of the item. |
abstract java.util.Enumeration |
getItems(int start,
int end)
Returns an enumeration of a subset of the items from a collection. |
abstract int |
getLastIndex(java.lang.Object element,
int startIndex)
Returns the index of the last occurrence of the item. |
| Methods inherited from interface com.sas.collection.StaticCollectionInterface |
|---|
apply, contains |
| Methods inherited from interface com.sas.collection.ContentsChangedSource |
|---|
addContentsChangedListener, removeContentsChangedListener |
| Methods inherited from interface com.sas.beans.PropertyChangeSource |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.sas.util.Enumerable |
|---|
getItems |
| Methods inherited from interface com.sas.util.IndexedGetInterface |
|---|
get |
| Methods inherited from interface com.sas.util.Countable |
|---|
count |
| Method Detail |
|---|
boolean equals(StaticOrderedCollectionInterface orderedCollection)
equals() method is used to compare
collection items.
orderedCollection - Another ordered collection to be compared to.
int getIndex(java.lang.Object element,
int startIndex)
element - item to search forstartIndex - the position where the search should start
java.lang.IndexOutOfBoundsException - if the index is
not in the range [0..count()-1].
java.lang.ClassCastException - In some implementations,
the objects that are stored may be restricted to a particular
type (such as String).
java.util.Enumeration getItems(int start,
int end)
start - the index of the first item, zero based.end - one past the index of the last item to include in the enumeration, zero based,
or -1 to indicate the enumeration should include all remaining elements.
Note that the range of elements returned in the Enumeration does not
include the end item; this is consistent with String.substring(start, end)
for example.
java.lang.IndexOutOfBoundsException - if start
is not in the range [0, count()-1], or start > last
or [0, count()]
int getLastIndex(java.lang.Object element,
int startIndex)
element - the item to search forstartIndex - the position where the search should start
java.lang.IndexOutOfBoundsException - if the index is
not in the range [0..count()-1]
java.lang.ClassCastException - In some implementations,
the objects that are stored may be restricted to a particular
type (such as String). (a RuntimeException)
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface com.sas.PublicClonableclone in interface StaticCollectionInterfacejava.lang.CloneNotSupportedException - if the object could not be cloned.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||