summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/funcdata/FunctionalMap.java
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-10-11 13:41:07 -0300
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-10-11 13:41:07 -0300
commit946cab444bc301d8a7c756a1bab039558288de89 (patch)
tree419f27c39a509bcd83cae0e6630be8eb7ff95a30 /base/src/main/java/bjc/utils/funcdata/FunctionalMap.java
parentc82e3b3b2de0633317ec8fc85925e91422820597 (diff)
Cleanup work
Diffstat (limited to 'base/src/main/java/bjc/utils/funcdata/FunctionalMap.java')
-rw-r--r--base/src/main/java/bjc/utils/funcdata/FunctionalMap.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/base/src/main/java/bjc/utils/funcdata/FunctionalMap.java b/base/src/main/java/bjc/utils/funcdata/FunctionalMap.java
index c4f0ff1..1218833 100644
--- a/base/src/main/java/bjc/utils/funcdata/FunctionalMap.java
+++ b/base/src/main/java/bjc/utils/funcdata/FunctionalMap.java
@@ -14,25 +14,25 @@ import bjc.utils.data.IPair;
* @author ben
*
* @param <KeyType>
- * The type of the map's keys
+ * The type of the map's keys.
+ *
* @param <ValueType>
- * The type of the map's values
+ * The type of the map's values.
*/
public class FunctionalMap<KeyType, ValueType> implements IMap<KeyType, ValueType> {
+ /* Our backing store. */
private Map<KeyType, ValueType> wrappedMap;
- /**
- * Create a new blank functional map
- */
+ /** Create a new blank functional map */
public FunctionalMap() {
wrappedMap = new HashMap<>();
}
/**
- * Create a new functional map with the specified entries
+ * Create a new functional map with the specified entries.
*
* @param entries
- * The entries to put into the map
+ * The entries to put into the map.
*/
@SafeVarargs
public FunctionalMap(final IPair<KeyType, ValueType>... entries) {
@@ -46,10 +46,10 @@ public class FunctionalMap<KeyType, ValueType> implements IMap<KeyType, ValueTyp
}
/**
- * Create a new functional map wrapping the specified map
+ * Create a new functional map wrapping the specified map.
*
* @param wrap
- * The map to wrap
+ * The map to wrap.
*/
public FunctionalMap(final Map<KeyType, ValueType> wrap) {
if (wrap == null) throw new NullPointerException("Map to wrap must not be null");