org.apache.velocity.app.tools
public class VelocityFormatter.VelocityAlternator extends Object
Field Summary | |
---|---|
protected String[] | alternates |
protected int | current |
Constructor Summary | |
---|---|
VelocityAlternator(String[] alternates)
Constructor takes an array of Strings.
|
Method Summary | |
---|---|
String | alternate()
Alternates to the next in the list.
|
String | toString()
Returns the current alternate.
|
Parameters: alternates A String[].
Returns: The current alternate in the sequence.
Returns: A String.