summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/esodata/MapSet.java
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2020-11-11 12:23:57 -0400
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2020-11-11 12:23:57 -0400
commit0805c271505340c1da60a1b8920560bae73f21a9 (patch)
tree2703917145a8e8aee7bd4ad55634c65ed688dda6 /src/main/java/bjc/esodata/MapSet.java
parentd3239ea7b6945d449c0361416ab54fec6f9643e6 (diff)
parentc56a10f7c943dd9e9f04854395638babfaba6529 (diff)
Merge branch 'master' of https://github.com/bculkin2442/esodata
Diffstat (limited to 'src/main/java/bjc/esodata/MapSet.java')
-rw-r--r--src/main/java/bjc/esodata/MapSet.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/bjc/esodata/MapSet.java b/src/main/java/bjc/esodata/MapSet.java
index a80c482..7d77ad6 100644
--- a/src/main/java/bjc/esodata/MapSet.java
+++ b/src/main/java/bjc/esodata/MapSet.java
@@ -116,8 +116,7 @@ public class MapSet<KeyType, ValueType> extends AbstractMap<KeyType, ValueType>
* @return False if there is no map attached to the key, true otherwise.
*/
public boolean setMap(String key) {
- if (!backing.containsKey(key))
- return false;
+ if (!backing.containsKey(key)) return false;
currentMap = backing.get(key);
@@ -165,16 +164,14 @@ public class MapSet<KeyType, ValueType> extends AbstractMap<KeyType, ValueType>
@Override
public Set<Map.Entry<KeyType, ValueType>> entrySet() {
- if (currentMap == null)
- throw new NullPointerException("Current map is not set");
+ if (currentMap == null) throw new NullPointerException("Current map is not set");
return currentMap.entrySet();
}
@Override
public ValueType put(KeyType key, ValueType value) {
- if (currentMap == null)
- throw new NullPointerException("Current map is not set");
+ if (currentMap == null) throw new NullPointerException("Current map is not set");
return currentMap.put(key, value);
}