railo.commons.lang
Class StringList

java.lang.Object
  extended by railo.commons.lang.StringList

public final class StringList
extends Object

a Simple single direction string list


Constructor Summary
StringList()
          constructor of the class
StringList(String str)
          constructor of the class
StringList(String str1, String str2)
          constructor of the class, initalize with 2 values
 
Method Summary
 void add(String str)
          adds a element to the list
 void add(String str, char delimiter)
           
 String current()
           
 char delimiter()
           
 boolean hasNext()
           
 boolean hasNextNext()
           
 String next()
           
 StringList reset()
          reset the String List
 int size()
           
 String[] toArray()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringList

public StringList()
constructor of the class


StringList

public StringList(String str)
constructor of the class

Parameters:
str - String Element

StringList

public StringList(String str1,
                  String str2)
constructor of the class, initalize with 2 values

Parameters:
str1 -
str2 -
Method Detail

hasNext

public boolean hasNext()
Returns:
returns if List has a next Element

hasNextNext

public boolean hasNextNext()
Returns:
returns if List has a next Element

next

public String next()
Returns:
returns next element in the list

delimiter

public char delimiter()

current

public String current()
Returns:
returns current element in the list

reset

public StringList reset()
reset the String List

Returns:

size

public int size()
Returns:
returns the size of the list

add

public void add(String str)
adds a element to the list

Parameters:
str - String Element to add

add

public void add(String str,
                char delimiter)

toArray

public String[] toArray()


Copyright © 2012 Railo