From 8923edffdb36b790014ff47301e53f7ede93ea0d Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Wed, 11 Oct 2017 22:49:16 -0300 Subject: Cleanup more --- .../bjc/utils/funcdata/TransformedValueMap.java | 26 +++++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'base/src/main/java/bjc/utils/funcdata/TransformedValueMap.java') diff --git a/base/src/main/java/bjc/utils/funcdata/TransformedValueMap.java b/base/src/main/java/bjc/utils/funcdata/TransformedValueMap.java index 0ca1fdc..a8cb762 100644 --- a/base/src/main/java/bjc/utils/funcdata/TransformedValueMap.java +++ b/base/src/main/java/bjc/utils/funcdata/TransformedValueMap.java @@ -10,16 +10,30 @@ import java.util.function.Function; * @author ben * * @param - * The type of the map's keys + * The type of the map's keys + * * @param - * The type of the map's values + * The type of the map's values + * * @param - * The type of the transformed values + * The type of the transformed values + * */ final class TransformedValueMap implements IMap { - private final IMap backing; - private final Function transformer; - + /* Our backing map. */ + private final IMap backing; + /* Our transforming function. */ + private final Function transformer; + + /** + * Create a new transformed-value loop. + * + * @param backingMap + * The map to use as backing. + * + * @param transform + * The function to use for the transform. + */ public TransformedValueMap(final IMap backingMap, final Function transform) { backing = backingMap; -- cgit v1.2.3