models

Class Predicate

lucee.Component
    extended by models.BaseProxy
      extended by models.Predicate

Functional Interface that maps to java.util.function.Predicate See https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any f)
          Constructor.
    Method Summary
    any $and([any other])
    any $or([any other])
    any isEqual([any targetRef])
    any negate()
    boolean test(any t)
         Evaluates this predicate on the given argument.
     
    Methods inherited from class models.BaseProxy
    err, getCFMLContext, getConcurrentEngineLockName, getCurrentThread, getDebug, getLoadAppContext, getSystem, getTarget, getThread, getThreadName, inForkJoinPool, loadContext, out, sendExceptionToLogBoxIfAvailable, sendExceptionToOnExceptionIfAvailable, setDebug, setLoadAppContext, setSystem, setTarget, setThread, unLoadContext
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any f)

    Constructor

    Parameters:
    f - The lambda or closure to be used in the apply() method

    Method Detail

    $and

    public any $and([any other])

    Parameters:
    other

    $or

    public any $or([any other])

    Parameters:
    other

    isEqual

    public any isEqual([any targetRef])

    Parameters:
    targetRef

    negate

    public any negate()


    test

    public boolean test(any t)

    Evaluates this predicate on the given argument.

    Parameters:
    t - true