I'm trying to find an implementation of java.util.List
and java.util.Set
at the same time in Java. I want this class to allow only unique elements (as Set
) and preserve their order (like List
). Does it exist in JDK 6?
It's important to have List<T>#add(int, T)
so I can insert into a specific position.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…