diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-03-22 12:28:35 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-03-22 12:28:35 -0400 |
| commit | 01cb9f504c860bc1c037a44f3a76bf342a293d46 (patch) | |
| tree | 02d1d34de0828159bbda93e881c93a6b45720f32 /BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java | |
| parent | 4685955a62c430007c5c8ed2b915ffc618d30aca (diff) | |
General formatting cleanup and documentation update
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java index 8bca490..614cf33 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java +++ b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java @@ -14,17 +14,23 @@ public class SimpleJList { /** * Create a new JList from a given list. * + * @param <E> + * The type of data in the JList + * * @param ls * The list to populate the JList with. * @return A JList populated with the elements from ls. */ public static <E> JList<E> buildFromList(Iterable<E> ls) { - return new JList<E>(buildModel(ls)); + return new JList<>(buildModel(ls)); } /** * Create a new list model from a given list. * + * @param <E> + * The type of data in the list model + * * @param ls * The list to fill the list model from. * @return A list model populated with the elements from ls. |
