|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface StaticStringListInterface
The StaticStringListInterface interface is a read-only ordered collection of strings. The StringListInterface interface provides the update methods for a collection of Strings, and the StringCollection class provides an implementation.
StringCollection| Method Summary | |
|---|---|
abstract java.lang.Object |
clone()
Clone the object. |
abstract boolean |
equals(StaticStringListInterface list)
Compare the current items with those in another StaticStringList and test whether the lists are identical. |
abstract int |
getIndex(java.lang.String item,
int startIndex)
Returns the index of the first occurrence of the string item. |
abstract int |
getLastIndex(java.lang.String item,
int startIndex)
Returns the index of the last occurrence of the string item. |
abstract java.lang.String |
getString(int index)
Fetch a string at a index. |
abstract java.lang.String[] |
getStringItems()
Return the Strings in the list as an array of String. |
abstract StaticStringListInterface |
getStringItems(int start,
int last)
Extract a sublist of items from the list |
| Methods inherited from interface com.sas.util.Countable |
|---|
count |
| Methods inherited from interface com.sas.util.Enumerable |
|---|
getItems |
| Methods inherited from interface com.sas.collection.ContentsChangedSource |
|---|
addContentsChangedListener, removeContentsChangedListener |
| Method Detail |
|---|
boolean equals(StaticStringListInterface list)
equals(Object) method is used to compare
the strings in each collection.
list - Another string list to be compared to.
int getIndex(java.lang.String item,
int startIndex)
item - item to search forstartIndex - index where search should start
java.lang.IndexOutOfBoundsException - if the start index
is not in the range [0..count()-1]java.lang.String[] getStringItems()
StaticStringListInterface getStringItems(int start,
int last)
start - the index of the first item, zero based.last - the index of the last item, zero based.
java.lang.IndexOutOfBoundsException - if start or last
are not in the range [0, count()-1].StaticOrderedCollectionInterface.getItems(int, int),
String.substring(int, int)
int getLastIndex(java.lang.String item,
int startIndex)
item - item to search forstartIndex - index where search should start
java.lang.IndexOutOfBoundsException - if the start index
is not in the range [0..count()-1]java.lang.String getString(int index)
index - the position of the item, zero based indexing.
java.lang.IndexOutOfBoundsException - if index
is not in the range [0, count-1].
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface com.sas.PublicClonablejava.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 | |||||||||||||