Skip to content

Commit

Permalink
extra ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 3, 2017
1 parent 22e8b4f commit d0ea92b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/cactoos/func/FuncAsRunnable.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
package org.cactoos.func;

import org.cactoos.Func;
import org.cactoos.Proc;

/**
* Func as Runnable.
Expand All @@ -41,6 +42,15 @@ public final class FuncAsRunnable implements Runnable {
*/
private final Func<?, ?> func;

/**
* Ctor.
* @param proc Encapsulated proc
* @since 0.11
*/
public FuncAsRunnable(final Proc<?> proc) {
this(new ProcAsFunc<>(proc));
}

/**
* Ctor.
* @param fnc Encapsulated func
Expand Down

0 comments on commit d0ea92b

Please sign in to comment.