pass closure to orientdb groovy function

18 views
Skip to first unread message

Selvaraj chennappan

unread,
Feb 28, 2017, 10:31:09 AM2/28/17
to OrientDB

I want to define groovy function  which should take  java.util.function.Function as argument


function filterCircuits(java.util.function.Function filter){

List circuitlist = <Read circuits using query>

 return filter.apply(circuitlist)
}
Reply all
Reply to author
Forward
0 new messages