Is there an insertion order preserving Set that also implements List?
TreeSet is sorted by element order; LinkedHashSet retains insertion order. Hopefully one of those is what you were after. You’ve specified that you want to be able to insert at an arbitrary location, I suspect you’ll have to write your own – just create a class containing a HashSet<T> and an ArrayList<T>; when adding an … Read more