summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/funcutils/Isomorphism.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/src/main/java/bjc/utils/funcutils/Isomorphism.java')
-rw-r--r--base/src/main/java/bjc/utils/funcutils/Isomorphism.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/base/src/main/java/bjc/utils/funcutils/Isomorphism.java b/base/src/main/java/bjc/utils/funcutils/Isomorphism.java
index 9559540..c219d7f 100644
--- a/base/src/main/java/bjc/utils/funcutils/Isomorphism.java
+++ b/base/src/main/java/bjc/utils/funcutils/Isomorphism.java
@@ -4,14 +4,14 @@ import java.util.function.Function;
/**
* A pair of functions to transform between a pair of types.
- *
+ *
* @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. */
@@ -21,12 +21,12 @@ public class Isomorphism<S, D> {
/**
* 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;
@@ -35,10 +35,10 @@ public class Isomorphism<S, D> {
/**
* Apply the isomorphism forward.
- *
+ *
* @param val
- * The source value.
- *
+ * The source value.
+ *
* @return The destination value.
*/
public D to(S val) {
@@ -47,10 +47,10 @@ public class Isomorphism<S, D> {
/**
* Apply the isomorphism backward.
- *
+ *
* @param val
- * The destination value.
- *
+ * The destination value.
+ *
* @return The source value.
*/
public S from(D val) {