diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-02-09 11:50:31 -0500 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2017-02-09 11:50:31 -0500 |
| commit | d2af58b0f68ebfbba2be7e7679efec6c8c0af12f (patch) | |
| tree | 2b16fbf014db350126e8c1b5f081312276f85f62 /BJC-Utils2/src/main/java/bjc/utils/funcdata/FunctionalMap.java | |
| parent | 187e1815488e3c1ed22e7592f304e632cffefb82 (diff) | |
Update
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcdata/FunctionalMap.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/funcdata/FunctionalMap.java | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcdata/FunctionalMap.java b/BJC-Utils2/src/main/java/bjc/utils/funcdata/FunctionalMap.java index dfe02dc..cc70ae1 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/funcdata/FunctionalMap.java +++ b/BJC-Utils2/src/main/java/bjc/utils/funcdata/FunctionalMap.java @@ -18,8 +18,7 @@ import bjc.utils.data.IPair; * @param <ValueType> * The type of the map's values */ -public class FunctionalMap<KeyType, ValueType> - implements IMap<KeyType, ValueType> { +public class FunctionalMap<KeyType, ValueType> implements IMap<KeyType, ValueType> { private Map<KeyType, ValueType> wrappedMap; /** @@ -65,11 +64,6 @@ public class FunctionalMap<KeyType, ValueType> wrappedMap.clear(); } - /* - * (non-Javadoc) - * - * @see bjc.utils.funcdata.IFunctionalMap#containsKey(K) - */ @Override public boolean containsKey(KeyType key) { return wrappedMap.containsKey(key); @@ -95,11 +89,6 @@ public class FunctionalMap<KeyType, ValueType> wrappedMap.values().forEach(action); } - /* - * (non-Javadoc) - * - * @see bjc.utils.funcdata.IFunctionalMap#get(K) - */ @Override public ValueType get(KeyType key) { if (key == null) { @@ -107,8 +96,7 @@ public class FunctionalMap<KeyType, ValueType> } if (!wrappedMap.containsKey(key)) { - throw new IllegalArgumentException( - "Key " + key + " is not present in the map"); + throw new IllegalArgumentException("Key " + key + " is not present in the map"); } return wrappedMap.get(key); @@ -130,12 +118,6 @@ public class FunctionalMap<KeyType, ValueType> return keys; } - /* - * (non-Javadoc) - * - * @see bjc.utils.funcdata.IFunctionalMap#mapValues(java.util.function. - * Function) - */ @Override public <MappedValue> IMap<KeyType, MappedValue> mapValues( Function<ValueType, MappedValue> transformer) { @@ -146,11 +128,6 @@ public class FunctionalMap<KeyType, ValueType> return new TransformedValueMap<>(this, transformer); } - /* - * (non-Javadoc) - * - * @see bjc.utils.funcdata.IFunctionalMap#put(K, V) - */ @Override public ValueType put(KeyType key, ValueType val) { if (key == null) { @@ -180,4 +157,4 @@ public class FunctionalMap<KeyType, ValueType> return values; } -}
\ No newline at end of file +} |
