- // TODO: Map<Long, T> map = ((BasketFrontend) this.getFrontend()).getAll();
- Map<Long, T> map = null;
-
- // Trace message
- this.getLogger().logTrace("map=" + map); //NOI18N
+ List<T> list = new LinkedList<>();
+
+ // Iterate over full item list
+ for (final T item : this.deque) {
+ // item should not be null
+ if (null == item) {
+ // Abort here
+ throw new NullPointerException("item is null"); //NOI18N
+ }
+
+ // Add to map, use the item's id as key
+ list.add(item);
+ }