|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.StringList
public final class StringList
This is a simple container for string values.
Constructor Summary | |
---|---|
StringList()
|
Method Summary | |
---|---|
void |
add(String s)
Adds a string to the array. |
boolean |
contains(String v)
Checks if the specified string is found in the list. |
String[] |
finish()
Returns the string array. |
String |
get(int p)
Returns the specified value. |
Iterator<String> |
iterator()
|
int |
size()
Returns the number of entries. |
void |
sort(boolean cs,
boolean asc)
Sorts the strings. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringList()
Method Detail |
---|
public void add(String s)
s
- string to be addedpublic int size()
public String get(int p)
p
- position
public boolean contains(String v)
v
- string to be checked
public String[] finish()
public void sort(boolean cs, boolean asc)
cs
- respect case sensitivityasc
- ascending/descending flagpublic Iterator<String> iterator()
iterator
in interface Iterable<String>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |