diff options
Diffstat (limited to 'src/main/java/bjc/esodata/KeyedList.java')
| -rw-r--r-- | src/main/java/bjc/esodata/KeyedList.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/bjc/esodata/KeyedList.java b/src/main/java/bjc/esodata/KeyedList.java index 5b0d6cc..5a381e1 100644 --- a/src/main/java/bjc/esodata/KeyedList.java +++ b/src/main/java/bjc/esodata/KeyedList.java @@ -19,12 +19,23 @@ package bjc.esodata; import java.util.*; +/** + * Implements a keyed list. + * + * @author bjcul + * + * @param <Key> The type of the key + * @param <Val> The type of the value + */ public class KeyedList<Key, Val> implements Iterable<Val> { private List<Val> backing; private Map<Key, Integer> indices; private int currIdx = 0; + /** + * Create a new keyed list + */ public KeyedList() { backing = new ArrayList<>(); indices = new HashMap<>(); |
