public class StringList
extends java.lang.Object
implements java.io.Serializable
Abstraction of a list of strings that can be cleanly loaded/saved as a stringifiable property in a .properties file.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Constructor and Description |
---|
StringList() |
StringList(java.lang.String[] pList) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Return true if this item's list of strings is the same as
obj's list of strings
|
java.lang.String[] |
getStrings()
Fetch the array of Strings.
|
int |
hashCode() |
void |
setStringAt(java.lang.String s,
int i)
Set a String by its index.
|
void |
setStrings(java.lang.String[] pList)
Set the array of Strings.
|
int |
size()
Get the number of strings in the StringList.
|
java.lang.String |
stringAt(int i)
Get a String by its index.
|
public StringList()
public StringList(java.lang.String[] pList)
public java.lang.String[] getStrings()
public void setStrings(java.lang.String[] pList)
public java.lang.String stringAt(int i)
public void setStringAt(java.lang.String s, int i)
public int size()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()