Package org.eolang.ineo.instructions
Class InstLambda<T>
- java.lang.Object
-
- org.eolang.ineo.instructions.InstLambda<T>
-
- Type Parameters:
T
- Type of instructions
- All Implemented Interfaces:
Iterable<org.xembly.Directive>
,Instructions<T>
public final class InstLambda<T> extends Object implements Instructions<T>
Get instruction from function.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description InstLambda(org.cactoos.Scalar<Instructions<T>> func)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instructions<T>
add(T value)
Add node.Iterator<org.xembly.Directive>
iterator()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
InstLambda
public InstLambda(org.cactoos.Scalar<Instructions<T>> func)
Ctor.- Parameters:
func
- Function
-
-
Method Detail
-
add
public Instructions<T> add(T value)
Description copied from interface:Instructions
Add node.- Specified by:
add
in interfaceInstructions<T>
- Parameters:
value
- Value to add- Returns:
- Self
-
iterator
public Iterator<org.xembly.Directive> iterator()
-
-