org.springframework.core.closure.support
Class AbstractConstraint

java.lang.Object
  extended by org.springframework.core.closure.support.AlgorithmsAccessor
      extended by org.springframework.core.closure.support.AbstractConstraint
All Implemented Interfaces:
Serializable, Constraint
Direct Known Subclasses:
IfTrue

public abstract class AbstractConstraint
extends AlgorithmsAccessor
implements Constraint, Serializable

Convenient class that uses the Algorithms on its own instance.

See Also:
Serialized Form

Constructor Summary
AbstractConstraint()
           
 
Method Summary
 boolean allTrue(Collection collection)
           
 boolean allTrue(Iterator it)
           
 boolean anyTrue(Collection collection)
           
 boolean anyTrue(Iterator it)
           
 Collection findAll(Collection collection)
           
 Collection findAll(Iterator it)
           
 Object findFirst(Collection collection)
           
 Object findFirst(Iterator it)
           
 
Methods inherited from class org.springframework.core.closure.support.AlgorithmsAccessor
allTrue, allTrue, anyTrue, anyTrue, findAll, findAll, findFirst, findFirst, forEach, forEach, getAlgorithms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.core.closure.Constraint
test
 

Constructor Detail

AbstractConstraint

public AbstractConstraint()
Method Detail

allTrue

public boolean allTrue(Collection collection)
See Also:
AlgorithmsAccessor.allTrue(Collection, Constraint)

allTrue

public boolean allTrue(Iterator it)
See Also:
AlgorithmsAccessor.allTrue(Iterator, Constraint)

anyTrue

public boolean anyTrue(Collection collection)
See Also:
AlgorithmsAccessor.anyTrue(Collection, Constraint)

anyTrue

public boolean anyTrue(Iterator it)
See Also:
AlgorithmsAccessor.anyTrue(Iterator, Constraint)

findAll

public Collection findAll(Collection collection)
See Also:
AlgorithmsAccessor.findAll(Collection, Constraint)

findAll

public Collection findAll(Iterator it)
See Also:
AlgorithmsAccessor.findAll(Iterator, Constraint)

findFirst

public Object findFirst(Collection collection)
See Also:
AlgorithmsAccessor.findFirst(Collection, Constraint)

findFirst

public Object findFirst(Iterator it)
See Also:
AlgorithmsAccessor.findFirst(Iterator, Constraint)


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.