public class VelocityFormatter.VelocityAutoAlternator extends VelocityFormatter.VelocityAlternator
alternate()
automatically on rendering in a template.alternates, current| Constructor and Description |
|---|
VelocityAutoAlternator(java.lang.String[] alternates)
Constructor takes an array of Strings.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Returns the current alternate, and automatically alternates
to the next alternate in its sequence (trigged upon
rendering).
|
alternatepublic VelocityAutoAlternator(java.lang.String[] alternates)
alternates - A String[].public final java.lang.String toString()
toString in class VelocityFormatter.VelocityAlternator