From df94066e3af02ff02d5ab4d033a3d603f743234c Mon Sep 17 00:00:00 2001 From: bjculkin Date: Mon, 12 Feb 2018 22:45:04 -0500 Subject: Formatting pass --- .../main/java/bjc/utils/esodata/PushdownMap.java | 27 +++++++++++----------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'base/src/main/java/bjc/utils/esodata/PushdownMap.java') diff --git a/base/src/main/java/bjc/utils/esodata/PushdownMap.java b/base/src/main/java/bjc/utils/esodata/PushdownMap.java index 18a9b46..e010fee 100644 --- a/base/src/main/java/bjc/utils/esodata/PushdownMap.java +++ b/base/src/main/java/bjc/utils/esodata/PushdownMap.java @@ -17,10 +17,10 @@ import bjc.utils.funcdata.IMap; * @author EVE * * @param - * The key of the map. + * The key of the map. * * @param - * The values in the map. + * The values in the map. */ public class PushdownMap implements IMap { /* Our backing storage. */ @@ -84,17 +84,16 @@ public class PushdownMap implements IMap @Override public IMap transform(final Function transformer) { /* - * @NOTE - * Can and should we support this? - * More to the point, maybe this should be a map sub-type - * that does what it needs to? + * @NOTE Can and should we support this? More to the point, + * maybe this should be a map sub-type that does what it needs + * to? */ throw new UnsupportedOperationException("Cannot transform pushdown maps."); } @Override public ValueType put(final KeyType key, final ValueType val) { - if (backing.containsKey(key)) { + if(backing.containsKey(key)) { final Stack stk = backing.get(key); final ValueType vl = stk.top(); @@ -115,7 +114,7 @@ public class PushdownMap implements IMap public ValueType remove(final KeyType key) { final Stack stk = backing.get(key); - if (stk.size() > 1) { + if(stk.size() > 1) { return stk.pop(); } else { return backing.remove(key).top(); @@ -139,15 +138,15 @@ public class PushdownMap implements IMap @Override public boolean equals(final Object obj) { - if (this == obj) return true; - if (obj == null) return false; - if (!(obj instanceof PushdownMap)) return false; + if(this == obj) return true; + if(obj == null) return false; + if(!(obj instanceof PushdownMap)) return false; final PushdownMap other = (PushdownMap) obj; - if (backing == null) { - if (other.backing != null) return false; - } else if (!backing.equals(other.backing)) return false; + if(backing == null) { + if(other.backing != null) return false; + } else if(!backing.equals(other.backing)) return false; return true; } -- cgit v1.2.3