diff options
author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-04-13 12:17:14 -0400 |
---|---|---|
committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2019-04-13 12:17:14 -0400 |
commit | e0c5021a9ba85debf0c0722d78f75a0dbcc8376b (patch) | |
tree | fff7da15995839b099f1e5b66111e94da9b9b3b2 /src/org/unitConverter/converterGUI/DelegateListModel.java | |
parent | 8e613844ae19a4dea2089ac34c1f0ae650eaeae7 (diff) |
Implemented the dimension-based converter.
Also added a search box list, and fixed a bug with dimension exponentiation.
Diffstat (limited to 'src/org/unitConverter/converterGUI/DelegateListModel.java')
-rwxr-xr-x | src/org/unitConverter/converterGUI/DelegateListModel.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/org/unitConverter/converterGUI/DelegateListModel.java b/src/org/unitConverter/converterGUI/DelegateListModel.java index e375126..b80f63d 100755 --- a/src/org/unitConverter/converterGUI/DelegateListModel.java +++ b/src/org/unitConverter/converterGUI/DelegateListModel.java @@ -16,6 +16,7 @@ */ package org.unitConverter.converterGUI; +import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; @@ -50,6 +51,15 @@ final class DelegateListModel<E> extends AbstractListModel<E> implements List<E> private final List<E> delegate; /** + * Creates an empty {@code DelegateListModel}. + * + * @since 2019-04-13 + */ + public DelegateListModel() { + this(new ArrayList<>()); + } + + /** * Creates the {@code DelegateListModel}. * * @param delegate |