Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions core/src/main/java/fj/Try.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
public class Try {

/**
* Promotes the TryCatch0 to a Validation that returns an Exception on the failure side and its result on the success side.
* Promotes the Try0 to a Validation that returns an Exception on the failure side and its result on the success side.
*
* @param t A TryCatch0 to promote
* @param t A Try0 to promote
* @return A Validation with an Exception on the failure side and its result on the success side.
*/
static public <A, E extends Exception> P1<Validation<E, A>> f(final Try0<A, E> t) {
Expand All @@ -32,9 +32,9 @@ static public <A, E extends Exception> P1<Validation<E, A>> f(final Try0<A, E> t
}

/**
* Promotes the TryCatch1 to a Validation that returns an Exception on the failure side and its result on the success side.
* Promotes the Try1 to a Validation that returns an Exception on the failure side and its result on the success side.
*
* @param t A TryCatch1 to promote
* @param t A Try1 to promote
* @return A Validation with an Exception on the failure side and its result on the success side.
*/
static public <A, B, E extends Exception> F<A, Validation<E, B>> f(final Try1<A, B, E> t) {
Expand All @@ -48,9 +48,9 @@ static public <A, B, E extends Exception> F<A, Validation<E, B>> f(final Try1<A,
}

/**
* Promotes the TryCatch2 to a Validation that returns an Exception on the failure side and its result on the success side.
* Promotes the Try2 to a Validation that returns an Exception on the failure side and its result on the success side.
*
* @param t A TryCatch2 to promote
* @param t A Try2 to promote
* @return A Validation with an Exception on the failure side and its result on the success side.
*/
static public <A, B, C, E extends Exception> F2<A, B, Validation<E, C>> f(final Try2<A, B, C, E> t) {
Expand All @@ -64,9 +64,9 @@ static public <A, B, C, E extends Exception> F2<A, B, Validation<E, C>> f(final
}

/**
* Promotes the TryCatch3 to a Validation that returns an Exception on the failure side and its result on the success side.
* Promotes the Try3 to a Validation that returns an Exception on the failure side and its result on the success side.
*
* @param t A TryCatch3 to promote
* @param t A Try3 to promote
* @return A Validation with an Exception on the failure side and its result on the success side.
*/
static public <A, B, C, D, E extends Exception> F3<A, B, C, Validation<E, D>> f(final Try3<A, B, C, D, E> t) {
Expand All @@ -80,9 +80,9 @@ static public <A, B, C, D, E extends Exception> F3<A, B, C, Validation<E, D>> f(
}

/**
* Promotes the TryCatch4 to a Validation that returns an Exception on the failure side and its result on the success side.
* Promotes the Try4 to a Validation that returns an Exception on the failure side and its result on the success side.
*
* @param t A TryCatch4 to promote
* @param t A Try4 to promote
* @return A Validation with an Exception on the failure side and its result on the success side.
*/
static public <A, B, C, D, E, Z extends Exception> F4<A, B, C, D, Validation<Z, E>> f(final Try4<A, B, C, D, E, Z> t) {
Expand All @@ -96,9 +96,9 @@ static public <A, B, C, D, E, Z extends Exception> F4<A, B, C, D, Validation<Z,
}

/**
* Promotes the TryCatch5 to a Validation that returns an Exception on the failure side and its result on the success side.
* Promotes the Try5 to a Validation that returns an Exception on the failure side and its result on the success side.
*
* @param t A TryCatch5 to promote
* @param t A Try5 to promote
* @return A Validation with an Exception on the failure side and its result on the success side.
*/
static public <A, B, C, D, E, F, Z extends Exception> F5<A, B, C, D, E, Validation<Z, F>> f(final Try5<A, B, C, D, E, F, Z> t) {
Expand All @@ -112,9 +112,9 @@ static public <A, B, C, D, E, F, Z extends Exception> F5<A, B, C, D, E, Validati
}

/**
* Promotes the TryCatch6 to a Validation that returns an Exception on the failure side and its result on the success side.
* Promotes the Try6 to a Validation that returns an Exception on the failure side and its result on the success side.
*
* @param t A TryCatch6 to promote
* @param t A Try6 to promote
* @return A Validation with an Exception on the failure side and its result on the success side.
*/
static public <A, B, C, D, E, F, G, Z extends Exception> F6<A, B, C, D, E, F, Validation<Z, G>> f(final Try6<A, B, C, D, E, F, G, Z> t) {
Expand All @@ -128,9 +128,9 @@ static public <A, B, C, D, E, F, G, Z extends Exception> F6<A, B, C, D, E, F, Va
}

/**
* Promotes the TryCatch7 to a Validation that returns an Exception on the failure side and its result on the success side.
* Promotes the Try7 to a Validation that returns an Exception on the failure side and its result on the success side.
*
* @param t A TryCatch7 to promote
* @param t A Try7 to promote
* @return A Validation with an Exception on the failure side and its result on the success side.
*/
static public <A, B, C, D, E, F, G, H, Z extends Exception> F7<A, B, C, D, E, F, G, Validation<Z, H>> f(final Try7<A, B, C, D, E, F, G, H, Z> t) {
Expand All @@ -144,9 +144,9 @@ static public <A, B, C, D, E, F, G, H, Z extends Exception> F7<A, B, C, D, E, F,
}

/**
* Promotes the TryCatch8 to a Validation that returns an Exception on the failure side and its result on the success side.
* Promotes the Try8 to a Validation that returns an Exception on the failure side and its result on the success side.
*
* @param t A TryCatch8 to promote
* @param t A Try8 to promote
* @return A Validation with an Exception on the failure side and its result on the success side.
*/
public static <A, B, C, D, E, F, G, H, I, Z extends Exception> F8<A, B, C, D, E, F, G, H, Validation<Z, I>> f(final Try8<A, B, C, D, E, F, G, H, I, Z> t) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/fj/function/Try0.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Used to instantiate a lambda that may throw an <code>Exception</code> before converting to a <code>P1</code>.
*
* @see fj.Try#f
* @see fj.Try#f(Try0)
* @version %build.number%
*/

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/fj/function/Try1.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Used to instantiate a lambda that may throw an <code>Exception</code> before converting to an <code>F</code>.
*
* @see fj.Try#f
* @see fj.Try#f(Try1)
* @version %build.number%
*/

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/fj/function/Try2.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Used to instantiate a lambda that may throw an <code>Exception</code> before converting to an <code>F2</code>.
*
* @see fj.Try#f
* @see fj.Try#f(Try2)
* @version %build.number%
*/

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/fj/function/Try3.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Used to instantiate a lambda that may throw an <code>Exception</code> before converting to an <code>F3</code>.
*
* @see fj.Try#f
* @see fj.Try#f(Try3)
* @version %build.number%
*/

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/fj/function/Try4.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Used to instantiate a lambda that may throw an <code>Exception</code> before converting to an <code>F4</code>.
*
* @see fj.Try#f
* @see fj.Try#f(Try4)
* @version %build.number%
*/

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/fj/function/Try5.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Used to instantiate a lambda that may throw an <code>Exception</code> before converting to an <code>F5</code>.
*
* @see fj.Try#f
* @see fj.Try#f(Try5)
* @version %build.number%
*/

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/fj/function/Try6.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Used to instantiate a lambda that may throw an <code>Exception</code> before converting to an <code>F6</code>.
*
* @see fj.Try#f
* @see fj.Try#f(Try6)
* @version %build.number%
*/

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/fj/function/Try7.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Used to instantiate a lambda that may throw an <code>Exception</code> before converting to an <code>F7</code>.
*
* @see fj.Try#f
* @see fj.Try#f(Try7)
* @version %build.number%
*/

Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/fj/function/Try8.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Used to instantiate a lambda that may throw an <code>Exception</code> before converting to an <code>F8</code>.
*
* @see fj.Try#f
* @see fj.Try#f(Try8)
* @version %build.number%
*/

Expand Down