public class StringListBucket extends Object
Constructor and Description |
---|
StringListBucket()
Constructs the bucket.
|
StringListBucket(String list) |
Modifier and Type | Method and Description |
---|---|
void |
add(String element)
Adds a string to the end of the list.
|
void |
add(String element,
int index)
Adds a string to the given index of the list.
|
void |
clear()
Clears the list of all string elements.
|
boolean |
contains(String element)
Returns true if the list contains the given element string.
|
void |
fromString(String list)
Imports from a String into this bucket.
|
String |
get(int index)
Returns the string at the given index of the list.
|
int |
indexOfVar(String element)
Returns the index of the given string in the bucket, or -1 if not found.
|
void |
remove(int index)
Removes the string at the given index of the list.
|
int |
size()
Returns the number of string elements in the list.
|
String |
toString() |
StringBuffer |
toStringBuffer()
Returns the bucket as a StringBuffer.
|
public StringListBucket()
public StringListBucket(String list)
public int size()
public void clear()
public void add(String element)
public void add(String element, int index)
public String get(int index)
public void remove(int index)
public boolean contains(String element)
public int indexOfVar(String element)
public StringBuffer toStringBuffer()
public void fromString(String list)
Copyright © 2015. All rights reserved.