Skip to content

Commit

Permalink
(yegor256#1572) Generify Chained
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryBarskov committed May 8, 2021
1 parent 0f67ca8 commit 49f0a70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/cactoos/func/Chained.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public final class Chained<X, Y, Z> implements Func<X, Z> {
/**
* Before function.
*/
private final Func<X, Y> before;
private final Func<X, ? extends Y> before;

/**
* Functions.
Expand All @@ -49,16 +49,16 @@ public final class Chained<X, Y, Z> implements Func<X, Z> {
/**
* After function.
*/
private final Func<Y, Z> after;
private final Func<? super Y, Z> after;

/**
* Ctor.
* @param bfr Before function
* @param list Functions
* @param atr After function
*/
public Chained(final Func<X, Y> bfr, final Iterable<Func<Y, Y>> list,
final Func<Y, Z> atr) {
public Chained(final Func<X, ? extends Y> bfr, final Iterable<Func<Y, Y>> list,
final Func<? super Y, Z> atr) {
this.before = bfr;
this.funcs = list;
this.after = atr;
Expand Down

0 comments on commit 49f0a70

Please sign in to comment.