atg.core.util
Class StringList

java.lang.Object
  extended by atg.core.util.StringList
All Implemented Interfaces:
java.io.Serializable

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.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
StringList()
           
StringList(java.lang.String[] pList)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

StringList

public StringList()

StringList

public StringList(java.lang.String[] pList)
Method Detail

getStrings

public java.lang.String[] getStrings()
Fetch the array of Strings.


setStrings

public void setStrings(java.lang.String[] pList)
Set the array of Strings.


stringAt

public java.lang.String stringAt(int i)
Get a String by its index.


setStringAt

public void setStringAt(java.lang.String s,
                        int i)
Set a String by its index.


size

public int size()
Get the number of strings in the StringList.


equals

public boolean equals(java.lang.Object obj)
Return true if this item's list of strings is the same as obj's list of strings

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()