commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections TransformerUtils.java PredicateUtils.java FactoryUtils.java ClosureUtils.java
Date Wed, 14 Apr 2004 21:47:47 GMT
scolebourne    2004/04/14 14:47:47

  Modified:    collections/src/java/org/apache/commons/collections
                        TransformerUtils.java PredicateUtils.java
                        FactoryUtils.java ClosureUtils.java
  Log:
  Add additional javadoc links to implementation classes
  
  Revision  Changes    Path
  1.12      +45 -1     jakarta-commons/collections/src/java/org/apache/commons/collections/TransformerUtils.java
  
  Index: TransformerUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/TransformerUtils.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TransformerUtils.java	18 Feb 2004 01:15:42 -0000	1.11
  +++ TransformerUtils.java	14 Apr 2004 21:47:47 -0000	1.12
  @@ -74,6 +74,8 @@
        * Gets a transformer that always throws an exception.
        * This could be useful during testing as a placeholder.
        * 
  +     * @see org.apache.commons.collections.functors.ExceptionTransformer
  +     * 
        * @return the transformer
        */
       public static Transformer exceptionTransformer() {
  @@ -83,6 +85,8 @@
       /**
        * Gets a transformer that always returns null.
        * 
  +     * @see org.apache.commons.collections.functors.ConstantTransformer
  +     * 
        * @return the transformer
        */
       public static Transformer nullTransformer() {
  @@ -94,6 +98,8 @@
        * The input object should be immutable to maintain the
        * contract of Transformer (although this is not checked).
        * 
  +     * @see org.apache.commons.collections.functors.NOPTransformer
  +     * 
        * @return the transformer
        */
       public static Transformer nopTransformer() {
  @@ -110,6 +116,8 @@
        * <li>serialization clone
        * <ul>
        * 
  +     * @see org.apache.commons.collections.functors.CloneTransformer
  +     * 
        * @return the transformer
        */
       public static Transformer cloneTransformer() {
  @@ -120,6 +128,8 @@
        * Creates a Transformer that will return the same object each time the 
        * transformer is used.
        *
  +     * @see org.apache.commons.collections.functors.ConstantTransformer
  +     * 
        * @param constantToReturn  the constant object to return each time in the transformer
        * @return the transformer.
        */
  @@ -131,6 +141,8 @@
        * Creates a Transformer that calls a Closure each time the transformer is used.
        * The transformer returns the input object.
        *
  +     * @see org.apache.commons.collections.functors.ClosureTransformer
  +     * 
        * @param closure  the closure to run each time in the transformer, not null
        * @return the transformer
        * @throws IllegalArgumentException if the closure is null
  @@ -143,6 +155,8 @@
        * Creates a Transformer that calls a Predicate each time the transformer is used.
        * The transformer will return either Boolean.TRUE or Boolean.FALSE.
        *
  +     * @see org.apache.commons.collections.functors.PredicateTransformer
  +     * 
        * @param predicate  the predicate to run each time in the transformer, not null
        * @return the transformer
        * @throws IllegalArgumentException if the predicate is null
  @@ -155,6 +169,8 @@
        * Creates a Transformer that calls a Factory each time the transformer is used.
        * The transformer will return the value returned by the factory.
        *
  +     * @see org.apache.commons.collections.functors.FactoryTransformer
  +     * 
        * @param factory  the factory to run each time in the transformer, not null
        * @return the transformer
        * @throws IllegalArgumentException if the factory is null
  @@ -167,6 +183,8 @@
        * Create a new Transformer that calls two transformers, passing the result of
        * the first into the second.
        * 
  +     * @see org.apache.commons.collections.functors.ChainedTransformer
  +     * 
        * @param transformer1  the first transformer
        * @param transformer2  the second transformer
        * @return the transformer
  @@ -180,6 +198,8 @@
        * Create a new Transformer that calls each transformer in turn, passing the 
        * result into the next transformer.
        * 
  +     * @see org.apache.commons.collections.functors.ChainedTransformer
  +     * 
        * @param transformers  an array of transformers to chain
        * @return the transformer
        * @throws IllegalArgumentException if the transformers array is null
  @@ -194,6 +214,8 @@
        * result into the next transformer. The ordering is that of the iterator()
        * method on the collection.
        * 
  +     * @see org.apache.commons.collections.functors.ChainedTransformer
  +     * 
        * @param transformers  a collection of transformers to chain
        * @return the transformer
        * @throws IllegalArgumentException if the transformers collection is null
  @@ -207,6 +229,8 @@
        * Create a new Transformer that calls one of two transformers depending 
        * on the specified predicate.
        * 
  +     * @see org.apache.commons.collections.functors.SwitchTransformer
  +     * 
        * @param predicate  the predicate to switch on
        * @param trueTransformer  the transformer called if the predicate is true
        * @param falseTransformer  the transformer called if the predicate is false
  @@ -224,6 +248,8 @@
        * predicate at array location 0 returned true. Each predicate is evaluated
        * until one returns true. If no predicates evaluate to true, null is returned.
        * 
  +     * @see org.apache.commons.collections.functors.SwitchTransformer
  +     * 
        * @param predicates  an array of predicates to check
        * @param transformers  an array of transformers to call
        * @return the transformer
  @@ -243,6 +269,8 @@
        * until one returns true. If no predicates evaluate to true, the default
        * transformer is called. If the default transformer is null, null is returned.
        * 
  +     * @see org.apache.commons.collections.functors.SwitchTransformer
  +     * 
        * @param predicates  an array of predicates to check
        * @param transformers  an array of transformers to call
        * @param defaultTransformer  the default to call if no predicate matches, null means
return null
  @@ -268,6 +296,8 @@
        * case. The ordering is that of the iterator() method on the entryset collection 
        * of the map.
        * 
  +     * @see org.apache.commons.collections.functors.SwitchTransformer
  +     * 
        * @param predicatesAndTransformers  a map of predicates to transformers
        * @return the transformer
        * @throws IllegalArgumentException if the map is null
  @@ -288,6 +318,8 @@
        * default transformer is called. The default transformer is set in the map
        * using a null key. If no default is set, null will be returned in a default case.
        * 
  +     * @see org.apache.commons.collections.functors.SwitchTransformer
  +     * 
        * @param objectsAndTransformers  a map of objects to transformers
        * @return the transformer
        * @throws IllegalArgumentException if the map is null
  @@ -317,6 +349,8 @@
       /**
        * Gets a Transformer that expects an input Class object that it will instantiate.
        * 
  +     * @see org.apache.commons.collections.functors.InstantiateTransformer
  +     * 
        * @return the transformer
        */
       public static Transformer instantiateTransformer() {
  @@ -328,6 +362,8 @@
        * instantiate. The constructor used is determined by the arguments specified
        * to this method.
        *
  +     * @see org.apache.commons.collections.functors.InstantiateTransformer
  +     * 
        * @param paramTypes  parameter types for the constructor, can be null
        * @param args  the arguments to pass to the constructor, can be null
        * @return the transformer
  @@ -341,6 +377,8 @@
        * Creates a Transformer that uses the passed in Map to transform the input 
        * object (as a simple lookup).
        *
  +     * @see org.apache.commons.collections.functors.MapTransformer
  +     * 
        * @param map  the map to use to transform the objects
        * @return the transformer
        * @throws IllegalArgumentException if the map is null
  @@ -358,6 +396,8 @@
        * will call the <code>getName/code> method on the input object to 
        * determine the transformer result.
        * 
  +     * @see org.apache.commons.collections.functors.InvokerTransformer
  +     * 
        * @param methodName  the method name to call on the input object, may not be null
        * @return the transformer
        * @throws IllegalArgumentException if the methodName is null.
  @@ -371,6 +411,8 @@
        * The method parameters are specified. If the input object is null, 
        * null is returned.
        * 
  +     * @see org.apache.commons.collections.functors.InvokerTransformer
  +     * 
        * @param methodName  the name of the method
        * @param paramTypes  the parameter types
        * @param args  the arguments
  @@ -386,6 +428,8 @@
        * Gets a transformer that returns a <code>java.lang.String</code>
        * representation of the input object. This is achieved via the
        * <code>toString</code> method, <code>null</code> returns
'null'.
  +     * 
  +     * @see org.apache.commons.collections.functors.StringValueTransformer
        * 
        * @return the transformer
        */
  
  
  
  1.18      +61 -1     jakarta-commons/collections/src/java/org/apache/commons/collections/PredicateUtils.java
  
  Index: PredicateUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/PredicateUtils.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- PredicateUtils.java	13 Mar 2004 16:34:46 -0000	1.17
  +++ PredicateUtils.java	14 Apr 2004 21:47:47 -0000	1.18
  @@ -85,6 +85,8 @@
        * Gets a Predicate that always throws an exception.
        * This could be useful during testing as a placeholder.
        *
  +     * @see org.apache.commons.collections.functors.ExceptionPredicate
  +     * 
        * @return the predicate
        */
       public static Predicate exceptionPredicate() {
  @@ -94,6 +96,8 @@
       /**
        * Gets a Predicate that always returns true.
        * 
  +     * @see org.apache.commons.collections.functors.TruePredicate
  +     * 
        * @return the predicate
        */
       public static Predicate truePredicate() {
  @@ -103,6 +107,8 @@
       /**
        * Gets a Predicate that always returns false.
        * 
  +     * @see org.apache.commons.collections.functors.FalsePredicate
  +     * 
        * @return the predicate
        */
       public static Predicate falsePredicate() {
  @@ -112,6 +118,8 @@
       /**
        * Gets a Predicate that checks if the input object passed in is null.
        * 
  +     * @see org.apache.commons.collections.functors.NullPredicate
  +     * 
        * @return the predicate
        */
       public static Predicate nullPredicate() {
  @@ -121,6 +129,8 @@
       /**
        * Gets a Predicate that checks if the input object passed in is not null.
        * 
  +     * @see org.apache.commons.collections.functors.NotNullPredicate
  +     * 
        * @return the predicate
        */
       public static Predicate notNullPredicate() {
  @@ -131,6 +141,8 @@
        * Creates a Predicate that checks if the input object is equal to the
        * specified object using equals().
        * 
  +     * @see org.apache.commons.collections.functors.EqualPredicate
  +     * 
        * @param value  the value to compare against
        * @return the predicate
        */
  @@ -142,6 +154,8 @@
        * Creates a Predicate that checks if the input object is equal to the
        * specified object by identity.
        * 
  +     * @see org.apache.commons.collections.functors.IdentityPredicate
  +     * 
        * @param value  the value to compare against
        * @return the predicate
        */
  @@ -154,6 +168,8 @@
        * a particular type, using instanceof. A <code>null</code> input
        * object will return <code>false</code>.
        * 
  +     * @see org.apache.commons.collections.functors.InstanceofPredicate
  +     * 
        * @param type  the type to check for, may not be null
        * @return the predicate
        * @throws IllegalArgumentException if the class is null
  @@ -169,6 +185,8 @@
        * is accepted and will return true the first time, and false subsequently
        * as well.
        * 
  +     * @see org.apache.commons.collections.functors.UniquePredicate
  +     * 
        * @return the predicate
        */
       public static Predicate uniquePredicate() {
  @@ -186,6 +204,9 @@
        * will call the <code>isEmpty</code> method on the input object to 
        * determine the predicate result.
        * 
  +     * @see org.apache.commons.collections.functors.InvokerTransformer
  +     * @see org.apache.commons.collections.functors.TransformerPredicate
  +     * 
        * @param methodName  the method name to call on the input object, may not be null
        * @return the predicate
        * @throws IllegalArgumentException if the methodName is null.
  @@ -205,6 +226,9 @@
        * will call the <code>isEmpty</code> method on the input object to 
        * determine the predicate result.
        * 
  +     * @see org.apache.commons.collections.functors.InvokerTransformer
  +     * @see org.apache.commons.collections.functors.TransformerPredicate
  +     * 
        * @param methodName  the method name to call on the input object, may not be null
        * @param paramTypes  the parameter types
        * @param args  the arguments
  @@ -224,6 +248,8 @@
        * Create a new Predicate that returns true only if both of the specified
        * predicates are true.
        * 
  +     * @see org.apache.commons.collections.functors.AndPredicate
  +     * 
        * @param predicate1  the first predicate, may not be null
        * @param predicate2  the second predicate, may not be null
        * @return the <code>and</code> predicate
  @@ -237,6 +263,8 @@
        * Create a new Predicate that returns true only if all of the specified
        * predicates are true.
        * 
  +     * @see org.apache.commons.collections.functors.AllPredicate
  +     * 
        * @param predicates  an array of predicates to check, may not be null
        * @return the <code>all</code> predicate
        * @throws IllegalArgumentException if the predicates array is null
  @@ -251,6 +279,8 @@
        * Create a new Predicate that returns true only if all of the specified
        * predicates are true. The predicates are checked in iterator order.
        * 
  +     * @see org.apache.commons.collections.functors.AllPredicate
  +     * 
        * @param predicates  a collection of predicates to check, may not be null
        * @return the <code>all</code> predicate
        * @throws IllegalArgumentException if the predicates collection is null
  @@ -265,6 +295,8 @@
        * Create a new Predicate that returns true if either of the specified
        * predicates are true.
        * 
  +     * @see org.apache.commons.collections.functors.OrPredicate
  +     * 
        * @param predicate1  the first predicate, may not be null
        * @param predicate2  the second predicate, may not be null
        * @return the <code>or</code> predicate
  @@ -278,6 +310,8 @@
        * Create a new Predicate that returns true if any of the specified
        * predicates are true.
        * 
  +     * @see org.apache.commons.collections.functors.AnyPredicate
  +     * 
        * @param predicates  an array of predicates to check, may not be null
        * @return the <code>any</code> predicate
        * @throws IllegalArgumentException if the predicates array is null
  @@ -292,6 +326,8 @@
        * Create a new Predicate that returns true if any of the specified
        * predicates are true. The predicates are checked in iterator order.
        * 
  +     * @see org.apache.commons.collections.functors.AnyPredicate
  +     * 
        * @param predicates  a collection of predicates to check, may not be null
        * @return the <code>any</code> predicate
        * @throws IllegalArgumentException if the predicates collection is null
  @@ -306,6 +342,8 @@
        * Create a new Predicate that returns true if one, but not both, of the
        * specified predicates are true.
        * 
  +     * @see org.apache.commons.collections.functors.OnePredicate
  +     * 
        * @param predicate1  the first predicate, may not be null
        * @param predicate2  the second predicate, may not be null
        * @return the <code>either</code> predicate
  @@ -319,6 +357,8 @@
        * Create a new Predicate that returns true if only one of the specified
        * predicates are true.
        * 
  +     * @see org.apache.commons.collections.functors.OnePredicate
  +     * 
        * @param predicates  an array of predicates to check, may not be null
        * @return the <code>one</code> predicate
        * @throws IllegalArgumentException if the predicates array is null
  @@ -333,6 +373,8 @@
        * Create a new Predicate that returns true if only one of the specified
        * predicates are true. The predicates are checked in iterator order.
        * 
  +     * @see org.apache.commons.collections.functors.OnePredicate
  +     * 
        * @param predicates  a collection of predicates to check, may not be null
        * @return the <code>one</code> predicate
        * @throws IllegalArgumentException if the predicates collection is null
  @@ -347,6 +389,8 @@
        * Create a new Predicate that returns true if neither of the specified 
        * predicates are true.
        * 
  +     * @see org.apache.commons.collections.functors.NonePredicate
  +     * 
        * @param predicate1  the first predicate, may not be null
        * @param predicate2  the second predicate, may not be null
        * @return the <code>neither</code> predicate
  @@ -360,6 +404,8 @@
        * Create a new Predicate that returns true if none of the specified
        * predicates are true.
        * 
  +     * @see org.apache.commons.collections.functors.NonePredicate
  +     * 
        * @param predicates  an array of predicates to check, may not be null
        * @return the <code>none</code> predicate
        * @throws IllegalArgumentException if the predicates array is null
  @@ -374,6 +420,8 @@
        * Create a new Predicate that returns true if none of the specified
        * predicates are true. The predicates are checked in iterator order.
        * 
  +     * @see org.apache.commons.collections.functors.NonePredicate
  +     * 
        * @param predicates  a collection of predicates to check, may not be null
        * @return the <code>none</code> predicate
        * @throws IllegalArgumentException if the predicates collection is null
  @@ -388,6 +436,8 @@
        * Create a new Predicate that returns true if the specified predicate
        * returns false and vice versa.
        * 
  +     * @see org.apache.commons.collections.functors.NotPredicate
  +     * 
        * @param predicate  the predicate to not
        * @return the <code>not</code> predicate
        * @throws IllegalArgumentException if the predicate is null
  @@ -404,6 +454,8 @@
        * return either Boolean.TRUE or Boolean.FALSE otherwise a PredicateException
        * will be thrown.
        * 
  +     * @see org.apache.commons.collections.functors.TransformerPredicate
  +     * 
        * @param transformer  the transformer to wrap, may not be null
        * @return the transformer wrapping predicate
        * @throws IllegalArgumentException if the transformer is null
  @@ -420,6 +472,8 @@
        * otherwise it calls the specified Predicate. This allows null handling 
        * behaviour to be added to Predicates that don't support nulls.
        * 
  +     * @see org.apache.commons.collections.functors.NullIsExceptionPredicate
  +     * 
        * @param predicate  the predicate to wrap, may not be null
        * @return the predicate
        * @throws IllegalArgumentException if the predicate is null.
  @@ -433,6 +487,8 @@
        * it calls the specified Predicate. This allows null handling behaviour to
        * be added to Predicates that don't support nulls.
        * 
  +     * @see org.apache.commons.collections.functors.NullIsFalsePredicate
  +     * 
        * @param predicate  the predicate to wrap, may not be null
        * @return the predicate
        * @throws IllegalArgumentException if the predicate is null.
  @@ -446,6 +502,8 @@
        * it calls the specified Predicate. This allows null handling behaviour to
        * be added to Predicates that don't support nulls.
        * 
  +     * @see org.apache.commons.collections.functors.NullIsTruePredicate
  +     * 
        * @param predicate  the predicate to wrap, may not be null
        * @return the predicate
        * @throws IllegalArgumentException if the predicate is null.
  @@ -459,6 +517,8 @@
       /**
        * Creates a predicate that transforms the input object before passing it
        * to the predicate.
  +     * 
  +     * @see org.apache.commons.collections.functors.TransformedPredicate
        * 
        * @param transformer  the transformer to call first
        * @param predicate  the predicate to call with the result of the transform
  
  
  
  1.14      +13 -1     jakarta-commons/collections/src/java/org/apache/commons/collections/FactoryUtils.java
  
  Index: FactoryUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/FactoryUtils.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- FactoryUtils.java	18 Feb 2004 01:15:42 -0000	1.13
  +++ FactoryUtils.java	14 Apr 2004 21:47:47 -0000	1.14
  @@ -50,6 +50,8 @@
        * Gets a Factory that always throws an exception.
        * This could be useful during testing as a placeholder.
        *
  +     * @see org.apache.commons.collections.functors.ExceptionFactory
  +     * 
        * @return the factory
        */
       public static Factory exceptionFactory() {
  @@ -60,6 +62,8 @@
        * Gets a Factory that will return null each time the factory is used.
        * This could be useful during testing as a placeholder.
        *
  +     * @see org.apache.commons.collections.functors.ConstantFactory
  +     * 
        * @return the factory
        */
       public static Factory nullFactory() {
  @@ -72,6 +76,8 @@
        * immutable objects should use the constant factory. Mutable objects should
        * use the prototype factory.
        *
  +     * @see org.apache.commons.collections.functors.ConstantFactory
  +     * 
        * @param constantToReturn  the constant object to return each time in the factory
        * @return the <code>constant</code> factory.
        */
  @@ -89,6 +95,8 @@
        * <li>serialization clone
        * <ul>
        *
  +     * @see org.apache.commons.collections.functors.PrototypeFactory
  +     * 
        * @param prototype  the object to clone each time in the factory
        * @return the <code>prototype</code> factory
        * @throws IllegalArgumentException if the prototype is null
  @@ -102,6 +110,8 @@
        * Creates a Factory that can create objects of a specific type using
        * a no-args constructor.
        *
  +     * @see org.apache.commons.collections.functors.InstantiateFactory
  +     * 
        * @param classToInstantiate  the Class to instantiate each time in the factory
        * @return the <code>reflection</code> factory
        * @throws IllegalArgumentException if the classToInstantiate is null
  @@ -114,6 +124,8 @@
        * Creates a Factory that can create objects of a specific type using
        * the arguments specified to this method.
        *
  +     * @see org.apache.commons.collections.functors.InstantiateFactory
  +     * 
        * @param classToInstantiate  the Class to instantiate each time in the factory
        * @param paramTypes  parameter types for the constructor, can be null
        * @param args  the arguments to pass to the constructor, can be null
  
  
  
  1.8       +35 -1     jakarta-commons/collections/src/java/org/apache/commons/collections/ClosureUtils.java
  
  Index: ClosureUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/ClosureUtils.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ClosureUtils.java	18 Feb 2004 01:15:42 -0000	1.7
  +++ ClosureUtils.java	14 Apr 2004 21:47:47 -0000	1.8
  @@ -63,6 +63,8 @@
        * Gets a Closure that always throws an exception.
        * This could be useful during testing as a placeholder.
        *
  +     * @see org.apache.commons.collections.functors.ExceptionClosure
  +     * 
        * @return the closure
        */
       public static Closure exceptionClosure() {
  @@ -73,6 +75,8 @@
        * Gets a Closure that will do nothing.
        * This could be useful during testing as a placeholder.
        *
  +     * @see org.apache.commons.collections.functors.NOPClosure
  +     * 
        * @return the closure
        */
       public static Closure nopClosure() {
  @@ -84,6 +88,8 @@
        * The transformer will be called using the closure's input object.
        * The transformer's result will be ignored.
        *
  +     * @see org.apache.commons.collections.functors.TransformerClosure
  +     * 
        * @param transformer  the transformer to run each time in the closure, null means
nop
        * @return the closure
        */
  @@ -96,6 +102,8 @@
        * <p>
        * A null closure or zero count returns the <code>NOPClosure</code>.
        *
  +     * @see org.apache.commons.collections.functors.ForClosure
  +     * 
        * @param count  the number of times to loop
        * @param closure  the closure to call repeatedly
        * @return the <code>for</code> closure
  @@ -108,6 +116,8 @@
        * Creates a Closure that will call the closure repeatedly until the 
        * predicate returns false.
        *
  +     * @see org.apache.commons.collections.functors.WhileClosure
  +     * 
        * @param predicate  the predicate to use as an end of loop test, not null
        * @param closure  the closure to call repeatedly, not null
        * @return the <code>while</code> closure
  @@ -121,6 +131,8 @@
        * Creates a Closure that will call the closure once and then repeatedly
        * until the predicate returns false.
        *
  +     * @see org.apache.commons.collections.functors.WhileClosure
  +     * 
        * @param closure  the closure to call repeatedly, not null
        * @param predicate  the predicate to use as an end of loop test, not null
        * @return the <code>do-while</code> closure
  @@ -134,6 +146,9 @@
        * Creates a Closure that will invoke a specific method on the closure's
        * input object by reflection.
        *
  +     * @see org.apache.commons.collections.functors.InvokerTransformer
  +     * @see org.apache.commons.collections.functors.TransformerClosure
  +     * 
        * @param methodName  the name of the method
        * @return the <code>invoker</code> closure
        * @throws IllegalArgumentException if the method name is null
  @@ -147,6 +162,9 @@
        * Creates a Closure that will invoke a specific method on the closure's
        * input object by reflection.
        *
  +     * @see org.apache.commons.collections.functors.InvokerTransformer
  +     * @see org.apache.commons.collections.functors.TransformerClosure
  +     * 
        * @param methodName  the name of the method
        * @param paramTypes  the parameter types
        * @param args  the arguments
  @@ -163,6 +181,8 @@
        * Create a new Closure that calls two Closures, passing the result of
        * the first into the second.
        * 
  +     * @see org.apache.commons.collections.functors.ChainedClosure
  +     * 
        * @param closure1  the first closure
        * @param closure2  the second closure
        * @return the <code>chained</code> closure
  @@ -176,6 +196,8 @@
        * Create a new Closure that calls each closure in turn, passing the 
        * result into the next closure.
        * 
  +     * @see org.apache.commons.collections.functors.ChainedClosure
  +     * 
        * @param closures  an array of closures to chain
        * @return the <code>chained</code> closure
        * @throws IllegalArgumentException if the closures array is null
  @@ -190,6 +212,8 @@
        * result into the next closure. The ordering is that of the iterator()
        * method on the collection.
        * 
  +     * @see org.apache.commons.collections.functors.ChainedClosure
  +     * 
        * @param closures  a collection of closures to chain
        * @return the <code>chained</code> closure
        * @throws IllegalArgumentException if the closures collection is null
  @@ -204,6 +228,8 @@
        * Create a new Closure that calls one of two closures depending 
        * on the specified predicate.
        * 
  +     * @see org.apache.commons.collections.functors.IfClosure
  +     * 
        * @param predicate  the predicate to switch on
        * @param trueClosure  the closure called if the predicate is true
        * @param falseClosure  the closure called if the predicate is false
  @@ -223,6 +249,8 @@
        * location 0 returned true. Each predicate is evaluated
        * until one returns true.
        * 
  +     * @see org.apache.commons.collections.functors.SwitchClosure
  +     * 
        * @param predicates  an array of predicates to check, not null
        * @param closures  an array of closures to call, not null
        * @return the <code>switch</code> closure
  @@ -243,6 +271,8 @@
        * until one returns true. If no predicates evaluate to true, the default
        * closure is called.
        * 
  +     * @see org.apache.commons.collections.functors.SwitchClosure
  +     * 
        * @param predicates  an array of predicates to check, not null
        * @param closures  an array of closures to call, not null
        * @param defaultClosure  the default to call if no predicate matches
  @@ -266,6 +296,8 @@
        * null key. The ordering is that of the iterator() method on the entryset 
        * collection of the map.
        * 
  +     * @see org.apache.commons.collections.functors.SwitchClosure
  +     * 
        * @param predicatesAndClosures  a map of predicates to closures
        * @return the <code>switch</code> closure
        * @throws IllegalArgumentException if the map is null
  @@ -285,6 +317,8 @@
        * is called if the input object equals the key. If there is no match, the
        * default closure is called. The default closure is set in the map
        * using a null key.
  +     * 
  +     * @see org.apache.commons.collections.functors.SwitchClosure
        * 
        * @param objectsAndClosures  a map of objects to closures
        * @return the closure
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message