Example uses: $set.size($primes) -> 4 set.isEmpty($primes) -> false $set.contains($primes, 7) -> true Example toolbox.xml config (if you want to use this with VelocityView): <tool> <key>set</key> <scope>application</scope> <class>org.apache.velocity.tools.generic.SetTool</class> </tool>
This tool is entirely threadsafe, and has no instance members. It may be used in any scope (request, session, or application).
@author Shinobu Kawai @version $Id: $ @since VelocityTools 1.2
|
|