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 ScriptEngineengineprotected Stringscript
-
Constructor Summary
Constructors Constructor Description ScriptEngineLambda(String engineName, String script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Object a)voidaccept(Object a, Object b)voidaccept(Object a, Object b, Object c)Performs this operation on the given arguments.Objectapply(Object a)Objectget()booleantest(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:
acceptin interfaceBiConsumer
-
accept
public void accept(Object a, Object b, Object c)
Description copied from interface:TriConsumerPerforms this operation on the given arguments.- Specified by:
acceptin interfaceTriConsumer- Parameters:
a- the first argument to the operationb- the second argument to the operationc- the third argument to the operation
-
-