From df94066e3af02ff02d5ab4d033a3d603f743234c Mon Sep 17 00:00:00 2001 From: bjculkin Date: Mon, 12 Feb 2018 22:45:04 -0500 Subject: Formatting pass --- .../java/bjc/utils/funcdata/FunctionalMap.java | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'base/src/main/java/bjc/utils/funcdata/FunctionalMap.java') diff --git a/base/src/main/java/bjc/utils/funcdata/FunctionalMap.java b/base/src/main/java/bjc/utils/funcdata/FunctionalMap.java index 1218833..115005c 100644 --- a/base/src/main/java/bjc/utils/funcdata/FunctionalMap.java +++ b/base/src/main/java/bjc/utils/funcdata/FunctionalMap.java @@ -14,10 +14,10 @@ import bjc.utils.data.IPair; * @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. */ public class FunctionalMap implements IMap { /* Our backing store. */ @@ -32,13 +32,13 @@ public class FunctionalMap implements IMap... entries) { this(); - for (final IPair entry : entries) { + for(final IPair entry : entries) { entry.doWith((key, val) -> { wrappedMap.put(key, val); }); @@ -49,10 +49,10 @@ public class FunctionalMap implements IMap wrap) { - if (wrap == null) throw new NullPointerException("Map to wrap must not be null"); + if(wrap == null) throw new NullPointerException("Map to wrap must not be null"); wrappedMap = wrap; } @@ -89,9 +89,9 @@ public class FunctionalMap implements IMap implements IMap IMap transform(final Function transformer) { - if (transformer == null) throw new NullPointerException("Transformer must not be null"); + if(transformer == null) throw new NullPointerException("Transformer must not be null"); return new TransformedValueMap<>(this, transformer); } @Override public ValueType put(final KeyType key, final ValueType val) { - if (key == null) throw new NullPointerException("Key must not be null"); + if(key == null) throw new NullPointerException("Key must not be null"); return wrappedMap.put(key, val); } @@ -161,15 +161,15 @@ public class FunctionalMap implements IMap other = (FunctionalMap) obj; - if (wrappedMap == null) { - if (other.wrappedMap != null) return false; - } else if (!wrappedMap.equals(other.wrappedMap)) return false; + if(wrappedMap == null) { + if(other.wrappedMap != null) return false; + } else if(!wrappedMap.equals(other.wrappedMap)) return false; return true; } } -- cgit v1.2.3