diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-05-10 16:02:45 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-05-10 16:02:45 -0400 |
| commit | 61fd71f69e080790da722e0e03b71ecd7c2538a2 (patch) | |
| tree | e5c1150b27b84d550f807e44ac82688216451f00 /BJC-Utils2/src/main/java/bjc/utils/funcdata/ExtendedMap.java | |
| parent | 87ae1dfc8d8cb7b51d7bda4750ce841bbe691cfc (diff) | |
General update
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcdata/ExtendedMap.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/funcdata/ExtendedMap.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcdata/ExtendedMap.java b/BJC-Utils2/src/main/java/bjc/utils/funcdata/ExtendedMap.java index 9776961..378a4a0 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/funcdata/ExtendedMap.java +++ b/BJC-Utils2/src/main/java/bjc/utils/funcdata/ExtendedMap.java @@ -7,13 +7,13 @@ import java.util.function.Function; import bjc.utils.funcutils.ListUtils; class ExtendedMap<KeyType, ValueType> - implements IFunctionalMap<KeyType, ValueType> { - private IFunctionalMap<KeyType, ValueType> delegate; + implements IMap<KeyType, ValueType> { + private IMap<KeyType, ValueType> delegate; - private IFunctionalMap<KeyType, ValueType> store; + private IMap<KeyType, ValueType> store; - public ExtendedMap(IFunctionalMap<KeyType, ValueType> delegate, - IFunctionalMap<KeyType, ValueType> store) { + public ExtendedMap(IMap<KeyType, ValueType> delegate, + IMap<KeyType, ValueType> store) { this.delegate = delegate; this.store = store; } @@ -28,7 +28,7 @@ class ExtendedMap<KeyType, ValueType> } @Override - public IFunctionalMap<KeyType, ValueType> extend() { + public IMap<KeyType, ValueType> extend() { return new ExtendedMap<>(this, new FunctionalMap<>()); } @@ -68,12 +68,12 @@ class ExtendedMap<KeyType, ValueType> } @Override - public IFunctionalList<KeyType> keyList() { + public IList<KeyType> keyList() { return ListUtils.mergeLists(store.keyList(), delegate.keyList()); } @Override - public <MappedValue> IFunctionalMap<KeyType, MappedValue> mapValues( + public <MappedValue> IMap<KeyType, MappedValue> mapValues( Function<ValueType, MappedValue> transformer) { return new TransformedValueMap<>(this, transformer); } @@ -89,7 +89,7 @@ class ExtendedMap<KeyType, ValueType> } @Override - public IFunctionalList<ValueType> valueList() { + public IList<ValueType> valueList() { return ListUtils.mergeLists(store.valueList(), delegate.valueList()); } |
