Skip to content

Commit

Permalink
(yegor256#1406) Move Callable classes to org.cactoos.callables
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Sep 5, 2020
1 parent 202c47a commit c6af9fd
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package org.cactoos.func;
package org.cactoos.callable;

import java.util.concurrent.Callable;
import org.cactoos.Func;
import org.cactoos.Proc;
import org.cactoos.Scalar;
import org.cactoos.func.FuncOf;

/**
* Func as {@link Callable}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package org.cactoos.func;
package org.cactoos.callable;

import java.util.concurrent.Callable;
import org.cactoos.func.FuncOf;
import org.cactoos.func.Repeated;

/**
* Callable that runs repeatedly for a number of times.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/experimental/Threads.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import java.util.concurrent.Future;
import org.cactoos.Func;
import org.cactoos.Scalar;
import org.cactoos.func.CallableOf;
import org.cactoos.callable.CallableOf;
import org.cactoos.func.UncheckedFunc;
import org.cactoos.iterable.IterableEnvelope;
import org.cactoos.iterable.IterableOf;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/cactoos/experimental/Timed.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import java.util.concurrent.TimeUnit;
import org.cactoos.Func;
import org.cactoos.Scalar;
import org.cactoos.func.CallableOf;
import org.cactoos.callable.CallableOf;
import org.cactoos.func.UncheckedFunc;
import org.cactoos.iterable.IterableEnvelope;
import org.cactoos.iterable.IterableOf;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/cactoos/func/BiFuncOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.cactoos.Func;
import org.cactoos.Proc;
import org.cactoos.Scalar;
import org.cactoos.callable.CallableOf;

/**
* Represents many possible inputs as {@link BiFunc}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package org.cactoos.func;
package org.cactoos.callable;

import java.util.concurrent.atomic.AtomicBoolean;
import org.hamcrest.core.IsEqual;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package org.cactoos.func;
package org.cactoos.callable;

import java.util.concurrent.Callable;
import java.util.concurrent.atomic.AtomicInteger;
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/cactoos/experimental/TimedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.cactoos.func.CallableOf;
import org.cactoos.func.RepeatedCallable;
import org.cactoos.callable.CallableOf;
import org.cactoos.callable.RepeatedCallable;
import org.cactoos.scalar.ScalarOf;
import org.hamcrest.core.IsNull;
import org.junit.Test;
Expand Down

0 comments on commit c6af9fd

Please sign in to comment.