diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-04-13 18:40:41 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-04-13 18:40:41 -0400 |
| commit | d4ca769e542b2489b1e23cfcbdc3a0b7275b87cd (patch) | |
| tree | 1653a7399f97fb0c63ce62e3f60fd830d5c37f70 /base/src/main/java/bjc/utils/funcutils/Isomorphism.java | |
| parent | 2ac2e31a56ae59ee582e43a90c3495f86dd9ee7a (diff) | |
Cleanup pass
Cleanup pass to uniformize things
Diffstat (limited to 'base/src/main/java/bjc/utils/funcutils/Isomorphism.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/funcutils/Isomorphism.java | 30 |
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) { |
