Klasse GroovyClosureFilter<T>

java.lang.Object
de.uplanet.util.filter.GroovyClosureFilter<T>
Alle implementierten Schnittstellen:
IFilter<T>

@Scriptable public final class GroovyClosureFilter<T> extends Object implements IFilter<T>
This class implements the IFilter interface as a Groovy closure.
  • Konstruktordetails

    • GroovyClosureFilter

      public GroovyClosureFilter(groovy.lang.Closure<?> p_closure)
      Create a filter with the given closure.

      Note that this class does not clone the given closure. So the caller is responsible to clone it, if necessary.

      Parameter:
      p_closure - The closure used as a filter.
  • Methodendetails

    • accept

      public boolean accept(T p_obj)
      Angegeben von:
      accept in Schnittstelle IFilter<T>
      Parameter:
      p_obj - The object to be filtered.
      Gibt zurück:
      true if this filter accepts the given object, or false otherwise.