public class StringList extends List
Constructor and Description |
---|
StringList()
Creates a new StringList object.
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.Object o)
Appends the Object to the end of the StringList, but only if it is a String.
|
void |
concat(List l)
Concatenates the specified List to the end of the List making this call.
|
void |
insert(java.lang.Object o)
Inserts the Object in front of where the 'current' reference is, but only if it is a String.
|
void |
print()
Prints the whole StringList one String per line and moves the 'current' reference to the first entry.
|
void |
print(int outputAmount)
Prints the whole StringList with a maximum of outputAmount Strings one String per line and moves the 'current'
reference to the first entry.
|
void |
printHere()
Prints the rest of the StringList, starting from where the 'current' reference was, one String per line and
moves the 'current' reference to the first entry.
|
void |
printHere(int outputAmount)
Prints the rest of the StringList with a maximum of outputAmount Strings, starting from where the 'current'
reference was, one String per line and moves the 'current' reference to the first entry.
|
void |
setObject(java.lang.Object o)
Sets the Object where the 'current' reference is, but only if it is a String.
|
public void setObject(java.lang.Object o)
public void append(java.lang.Object o)
public void insert(java.lang.Object o)
public void concat(List l)
public void print()
public void print(int outputAmount)
outputAmount
- the maximum number of entries to print, starting at the beginning.public void printHere()
public void printHere(int outputAmount)
outputAmount
- the maximum number of entries to print, starting where the 'current' reference is.