From df94066e3af02ff02d5ab4d033a3d603f743234c Mon Sep 17 00:00:00 2001 From: bjculkin Date: Mon, 12 Feb 2018 22:45:04 -0500 Subject: Formatting pass --- .../main/java/bjc/utils/funcutils/Isomorphism.java | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'base/src/main/java/bjc/utils/funcutils/Isomorphism.java') diff --git a/base/src/main/java/bjc/utils/funcutils/Isomorphism.java b/base/src/main/java/bjc/utils/funcutils/Isomorphism.java index d86ee9f..9559540 100644 --- a/base/src/main/java/bjc/utils/funcutils/Isomorphism.java +++ b/base/src/main/java/bjc/utils/funcutils/Isomorphism.java @@ -8,25 +8,25 @@ import java.util.function.Function; * @author bjculkin * * @param - * The source type of the isomorphism. + * The source type of the isomorphism. * * @param - * The destination type of isomorphism. + * The destination type of isomorphism. */ public class Isomorphism { /* The function to the destination type. */ - private Function toFunc; + private Function toFunc; /* The function to the source type. */ - private Function fromFunc; + private Function fromFunc; /** * Create a new isomorphism. * * @param to - * The 'forward' function, from the source to the definition. + * The 'forward' function, from the source to the definition. * * @param from - * The 'backward' function, from the definition to the source. + * The 'backward' function, from the definition to the source. */ public Isomorphism(Function to, Function from) { toFunc = to; @@ -37,10 +37,9 @@ public class Isomorphism { * Apply the isomorphism forward. * * @param val - * The source value. + * The source value. * - * @return - * The destination value. + * @return The destination value. */ public D to(S val) { return toFunc.apply(val); @@ -50,10 +49,9 @@ public class Isomorphism { * Apply the isomorphism backward. * * @param val - * The destination value. + * The destination value. * - * @return - * The source value. + * @return The source value. */ public S from(D val) { return fromFunc.apply(val); -- cgit v1.2.3