summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/funcutils/Isomorphism.java
diff options
context:
space:
mode:
authorbjculkin <bjculkin@mix.wvu.edu>2018-02-12 22:45:04 -0500
committerbjculkin <bjculkin@mix.wvu.edu>2018-02-12 22:45:04 -0500
commitdf94066e3af02ff02d5ab4d033a3d603f743234c (patch)
tree168a1edaf58d386c175ffb601e9d4da8e13d31e2 /base/src/main/java/bjc/utils/funcutils/Isomorphism.java
parentae51c587c53f7ca311e556e3cbd0c5566d6c2843 (diff)
Formatting pass
Diffstat (limited to 'base/src/main/java/bjc/utils/funcutils/Isomorphism.java')
-rw-r--r--base/src/main/java/bjc/utils/funcutils/Isomorphism.java22
1 files changed, 10 insertions, 12 deletions
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 <S>
- * The source type of the isomorphism.
+ * The source type of the isomorphism.
*
* @param <D>
- * The destination type of isomorphism.
+ * The destination type of isomorphism.
*/
public class Isomorphism<S, D> {
/* The function to the destination type. */
- private Function<S, D> toFunc;
+ private Function<S, D> toFunc;
/* The function to the source type. */
- private Function<D, S> fromFunc;
+ private Function<D, S> 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<S, D> to, Function<D, S> from) {
toFunc = to;
@@ -37,10 +37,9 @@ public class Isomorphism<S, D> {
* 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<S, D> {
* 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);