Class ScriptEngineLambda
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.util.function.ScriptEngineLambda
-
- All Implemented Interfaces:
BiConsumer
,Consumer
,Function
,Predicate
,Supplier
,TriConsumer
public final class ScriptEngineLambda extends Object implements Function, Supplier, Consumer, Predicate, BiConsumer, TriConsumer
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected ScriptEngine
engine
protected String
script
-
Constructor Summary
Constructors Constructor Description ScriptEngineLambda(String engineName, String script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Object a)
void
accept(Object a, Object b)
void
accept(Object a, Object b, Object c)
Performs this operation on the given arguments.Object
apply(Object a)
Object
get()
boolean
test(Object a)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Methods inherited from interface org.apache.tinkerpop.gremlin.util.function.TriConsumer
andThen
-
-
-
-
Field Detail
-
engine
protected final ScriptEngine engine
-
script
protected final String script
-
-
Method Detail
-
accept
public void accept(Object a, Object b)
- Specified by:
accept
in interfaceBiConsumer
-
accept
public void accept(Object a, Object b, Object c)
Description copied from interface:TriConsumer
Performs this operation on the given arguments.- Specified by:
accept
in interfaceTriConsumer
- Parameters:
a
- the first argument to the operationb
- the second argument to the operationc
- the third argument to the operation
-
-