org.tm4j.vtl.helpers
Class MangoHelper

java.lang.Object
  extended byorg.tm4j.vtl.helpers.MangoHelper
All Implemented Interfaces:
org.apache.velocity.tools.view.tools.ViewTool

public class MangoHelper
extends java.lang.Object
implements org.apache.velocity.tools.view.tools.ViewTool

A Struts ViewTool which provides access to useful functions from the Mango library.

Author:
Kal Ahmed (kal@techquila.com)

Constructor Summary
MangoHelper()
           
 
Method Summary
 int countIf(java.util.Collection c, uk.co.jezuk.mango.Predicate p)
           
 void init(java.lang.Object arg0)
           
 java.util.Iterator predicatedIterator(java.util.Collection c, uk.co.jezuk.mango.Predicate p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MangoHelper

public MangoHelper()
Method Detail

predicatedIterator

public java.util.Iterator predicatedIterator(java.util.Collection c,
                                             uk.co.jezuk.mango.Predicate p)

countIf

public int countIf(java.util.Collection c,
                   uk.co.jezuk.mango.Predicate p)

init

public void init(java.lang.Object arg0)
Specified by:
init in interface org.apache.velocity.tools.view.tools.ViewTool