summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/funcdata/ExtendedMap.java
diff options
context:
space:
mode:
authorbjculkin <bjculkin@mix.wvu.edu>2018-02-12 22:45:04 -0500
committerbjculkin <bjculkin@mix.wvu.edu>2018-02-12 22:45:04 -0500
commitdf94066e3af02ff02d5ab4d033a3d603f743234c (patch)
tree168a1edaf58d386c175ffb601e9d4da8e13d31e2 /base/src/main/java/bjc/utils/funcdata/ExtendedMap.java
parentae51c587c53f7ca311e556e3cbd0c5566d6c2843 (diff)
Formatting pass
Diffstat (limited to 'base/src/main/java/bjc/utils/funcdata/ExtendedMap.java')
-rw-r--r--base/src/main/java/bjc/utils/funcdata/ExtendedMap.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/base/src/main/java/bjc/utils/funcdata/ExtendedMap.java b/base/src/main/java/bjc/utils/funcdata/ExtendedMap.java
index 0c6389e..a2ace67 100644
--- a/base/src/main/java/bjc/utils/funcdata/ExtendedMap.java
+++ b/base/src/main/java/bjc/utils/funcdata/ExtendedMap.java
@@ -13,10 +13,10 @@ import bjc.utils.funcutils.ListUtils;
* @author Ben Culkin
*
* @param <KeyType>
- * The type of the keys of the map.
+ * The type of the keys of the map.
*
* @param <ValueType>
- * The type of the values of the map.
+ * The type of the values of the map.
*/
class ExtendedMap<KeyType, ValueType> implements IMap<KeyType, ValueType> {
/* The map we delegate lookups to. */
@@ -28,10 +28,10 @@ class ExtendedMap<KeyType, ValueType> implements IMap<KeyType, ValueType> {
* Create a new extended map.
*
* @param delegate
- * The map to lookup things in.
+ * The map to lookup things in.
*
* @param store
- * The map to store things in.
+ * The map to store things in.
*/
public ExtendedMap(final IMap<KeyType, ValueType> delegate, final IMap<KeyType, ValueType> store) {
this.delegate = delegate;
@@ -45,7 +45,7 @@ class ExtendedMap<KeyType, ValueType> implements IMap<KeyType, ValueType> {
@Override
public boolean containsKey(final KeyType key) {
- if (store.containsKey(key)) return true;
+ if(store.containsKey(key)) return true;
return delegate.containsKey(key);
}
@@ -78,7 +78,7 @@ class ExtendedMap<KeyType, ValueType> implements IMap<KeyType, ValueType> {
@Override
public ValueType get(final KeyType key) {
- if (store.containsKey(key)) return store.get(key);
+ if(store.containsKey(key)) return store.get(key);
return delegate.get(key);
}
@@ -105,7 +105,7 @@ class ExtendedMap<KeyType, ValueType> implements IMap<KeyType, ValueType> {
@Override
public ValueType remove(final KeyType key) {
- if (!store.containsKey(key)) return delegate.remove(key);
+ if(!store.containsKey(key)) return delegate.remove(key);
return store.remove(key);
}
@@ -126,18 +126,18 @@ class ExtendedMap<KeyType, ValueType> implements IMap<KeyType, ValueType> {
@Override
public boolean equals(final Object obj) {
- if (this == obj) return true;
- if (obj == null) return false;
- if (!(obj instanceof ExtendedMap)) return false;
+ if(this == obj) return true;
+ if(obj == null) return false;
+ if(!(obj instanceof ExtendedMap)) return false;
final ExtendedMap<?, ?> other = (ExtendedMap<?, ?>) obj;
- if (delegate == null) {
- if (other.delegate != null) return false;
- } else if (!delegate.equals(other.delegate)) return false;
- if (store == null) {
- if (other.store != null) return false;
- } else if (!store.equals(other.store)) return false;
+ if(delegate == null) {
+ if(other.delegate != null) return false;
+ } else if(!delegate.equals(other.delegate)) return false;
+ if(store == null) {
+ if(other.store != null) return false;
+ } else if(!store.equals(other.store)) return false;
return true;
}