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